question

pc neo avatar image
0 Likes"
pc neo asked Jordan Johnson answered

Model run in webserver shows earlier stop time than actual model

Using webserver to run a model with stop time, though the actual model has stopped at the exact configured stop time, the web page shows a stop time that is earlier. Refer to picture.webserver_diff_runtime1.jpg


Is this a bug? Or is there a way to get the web page shows the same stop time as the actual model?

Any suggestion or help will be appreciated.

Thanks.

FlexSim 23.1.3
flexsim webserver
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

Here is my theory: when the model hits a stop time, there is no update for the stop time widget in the browser. If I hit the stop button, the widget updates to show the correct value:

stopbuttonupdate.gif

I'll add this to the dev list, to see if we can improve this behavior.


stopbuttonupdate.gif (239.1 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered pc neo edited

My only theory is that the model has one of the following:

  • A call to stop() or endreplication() somewhere in the model logic. Maybe the model stops itself?
  • A disabled stop time. Perhaps the webserver enables all stop times for a model?

It is hard to test without the model in question. If you are able to share the model, that would be best.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

pc neo avatar image pc neo commented ·

Thank you for looking into this query.

The previous model uses AGV and it contains commands that requested AGV to stop, so I've created a different model using only standard operators and processor (attached 2023Upd1_sample.fsm). The stop time shown on webpage still does not coincide with the model.

FYI. I am accessing the webpages using localhost (not sure if this is important info).webserver-diff-runtime1.jpg

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.