question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Luis Fernando commented

How reset all dashboard statistics

Hi FlexSim team,

My question is how can I reset all statistics of the dashboard?

Here is my model example attached:

Reset Stats in General.fsm

Thank you,

Luis

FlexSim 22.2.3
reset statistics
· 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 ·
They reset when you reset the model - but is there more to this question? I'm not sure we've got the full picture.
0 Likes 0 ·
Luis Fernando avatar image Luis Fernando Jason Lightfoot ♦♦ commented ·

Hi Jason,


I mean when a token pass through a code block. For example, if I have a token at 5 hrs after running the model and then I want to reset the statistics.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Luis Fernando commented

In a trigger or CustomCode activity you can enter

resetstats();

or you can set a warmup time in the experimenter.

· 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.

Luis Fernando avatar image Luis Fernando commented ·
Hi Jason, this works in my model, thank you.
0 Likes 0 ·
Diego Avila avatar image
0 Likes"
Diego Avila answered Luis Fernando commented

Hi Luis,

To reset the statistics of the dashboards in your model you can use the Warmup Time option.

1679069733299.png

Here it would be necessary to enable the warmup time checkbox and define based on time when you want the statistics to reset.

1679069839534.png

In this example, once the 5 hrs of the Warmup Time (18000 sec) have ran, the statistics of your dashboards are reset within the model.


1679069733299.png (140.1 KiB)
1679069839534.png (44.4 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.

Luis Fernando avatar image Luis Fernando commented ·
Hi Diego, thank you for your answer


0 Likes 0 ·