Reset stats on specific object only

Reset stats on specific object only

anna_lisa_dierking
Not applicable
6 Views
2 Replies
Message 1 of 3

Reset stats on specific object only

anna_lisa_dierking
Not applicable

[ FlexSim 18.1.2 ]

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.

0 Likes
Accepted solutions (1)
7 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 3

anna_lisa_dierking
Not applicable

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

0 Likes