Hello,
I'm using tracked variables in a model and I've realized that they restart when the warm-up period arrives. Is there any way to avoid this?
Thank you!
Myriam
Hello,
I'm using tracked variables in a model and I've realized that they restart when the warm-up period arrives. Is there any way to avoid this?
Thank you!
Myriam
You can store the nodes of the variable as a copy somewhere else before the warmup time ends. Then after this event you transfer the nodes back.
EDIT: Thanks for pointing this out. @Mischa Spelt
The warmup mechanism has not got an exclusion feature or a mapping of options.
A static method named init(…) has the ability to exclude resetting values from warmup option by setting a flag called: STAT_IGNORE_WARMUP
the tracked variable will ignore the resetstats() command. Use this option only if the tracked variable should keep the data collected during warmup time.
The warmup mechanism has not got an exclusion feature or a mapping of options.
But Tracked Variables can have a STAT_IGNORE_WARMUP flag, right?
Oh that's awesome. Thanks @Mischa Spelt and @Joerg Vogel .
I guess this is the code that I need to use.
But I'm not sure where do I have to introduce it. Can you help me with this?
Thank you! )
Myriam
tracked_variable_warmup_ignore.fsm
I executed the init line from a script window. Then the flag has been set and it will be kept set all time until it get erased by bit logic operation. If you dont have access to a script console, execute the code line once from a trigger or custom source code activity in process flow. Please compare entries of trackedvariable1 and 2. The time is not reset by warmup time. I'm not aware of an option to update time on warmup, too.
TrackedVariable.init(TrackedVariable("TrackedVariable1"), STAT_TYPE_TIME_SERIES,0,STAT_USE_HISTORY | STAT_IGNORE_WARMUP)
I write same values for both tracked variable on exit trigger to them.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved