question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked tannerp commented

Get state time

ss.fsm

Hello guys,

I am trying to get the route to get the times of "Idle", "travel empty", "offset travel empty", etc. I have not been able to find this route, you can support me by indicating how I can extract this information. I attach an image where it shows what I am trying to do.

FlexSim 18.2.2
states
ss.png (52.2 KiB)
ss.fsm (160.5 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.

1 Answer

·
Jordan Johnson avatar image
5 Likes"
Jordan Johnson answered Omar Aguilera Rico commented
You can use the object state statistics:
Model.find("Transporter1").as(Object).stats.state().getTotalTimeAt("idle")

The Statistics Collector in your model is using the same API, but it is passing in the state number, instead of the state name.

5 |100000

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

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.