question

CH L avatar image
0 Likes"
CH L asked CH L commented

How to auto record runspeed of FlexSim model

I need to run simulation study with a model connected to SQL server for data exchange with another software. Currently, all of the required data can be recorded by Statistic Collector or in Global table except the runspeed. I expect the runspeed of FlexSim would affect the result, but I are not sure how much it will be. It would be appreciated if someone can tell me how to auto record runspeed just like other data. Thanks!

FlexSim 18.2.3
flexsim 18.2.3runspeedauto record
· 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.

1 Answer

Benjamin W2 avatar image
2 Likes"
Benjamin W2 answered CH L commented

@leungch,

You can reference the runspeed with the following command:

  1. maintree().find("project/exec/step").value


In the attached model, I created a statistics collector to collect the runspeed every 10 model seconds.

First, create a timer event, then add an Event Data Label like so:

Then, add a column that references the runspeed:

RunSpeed.fsm



1599081593514.png (56.4 KiB)
1599081628176.png (58.3 KiB)
runspeed.fsm (27.3 KiB)
· 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.