question

Anna Lisa Dierking avatar image
0 Likes"
Anna Lisa Dierking asked Anna Lisa Dierking commented

Reset stats on specific object only

Hello everyone,

I was wondering if there is a way to reset the stats for specific objects after a specific event without reseting all stats?

I would like to get the utilization for some processors in my model, but I need to reset them after a specific warmup time. The problem is that I can not use the warmup time oder resetstats, since I don't want to reset the stats for every object in the model. How can I achieve this?

Thanks.

FlexSim 18.1.2
reset stats
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 Anna Lisa Dierking commented

Here is a model that demonstrates how to reset just the State variable.

resetstateforcertainobjects.fsm

The Custom Code block shows how to access the TrackedVariable that is keeping the state data, and how to reset that variable.


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

Anna Lisa Dierking avatar image Anna Lisa Dierking commented ·

Thank you @jordan.johnson, that is exactly what I've been looking for.

0 Likes 0 ·