Get state time

Get state time

omar_aguilera_rico
Not applicable
20 Views
1 Reply
Message 1 of 2

Get state time

omar_aguilera_rico
Not applicable

[ FlexSim 18.2.2 ]

ss.fsm

Hello guys,

14462-ss.png

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.

0 Likes
Accepted solutions (1)
21 Views
1 Reply
Reply (1)
Message 2 of 2

JordanLJohnson
Autodesk
Autodesk
Accepted solution
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.

.


Jordan Johnson
Principal Software Engineer
>