question

Zakir avatar image
0 Likes"
Zakir asked Zakir commented

How do I plot my operators' average speed in a graph?

PlotMaxSpeed - FlexSim Answers.fsm

I have operators changing their max speed based on which coloured plane have to pass through. These planes also change colours based on the time in the simulation.

How do I collect data of my operators' max speeds throughout the simulation?



FlexSim 23.1.3
time plot
· 2
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

The question title asks for average but then you ask about the maximum speed - which is it?

0 Likes 0 ·
Zakir avatar image Zakir Jason Lightfoot ♦ commented ·

The average 'Max Speed' in the properties. Do let me know if there is a different term to describe this. Thank you.1688871526298.png

0 Likes 0 ·
1688871526298.png (8.7 KiB)

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Zakir commented

You can find the average speed using the distance travelled/time travelling. The total travel distance is :

taskExecuter.stats.totalTravelDistance

You can also pin the statistics to a dashboard:

1688921325708.png

Then you can install the chart you chose an either edit the stats collector or use a calculated table to transform the stats_collector's data.


1688921325708.png (17.5 KiB)
· 2
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
A good template to track the maximum speed might be the State Gantt collector. (Install the chart to see the statistics collector behind it.) Instead of the state it would record the maximum speed. The proximity trigger of the agent system could send a message to the ship whose max. speed was changed which the collector can then react to and update the data. (The OnStateChange event from the State Gantt collector would be replaced with OnMessage.)

With this data of how long each ship was assigned which max. speed, you can use a Calculated Table to compute the average.

1 Like 1 ·
Zakir avatar image Zakir commented ·
Thank you. This works for me
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.