Yes, you can build a custom Statistics Collector for this.
A label array denotes which state time should be tracked. Based on that a column set is created. When an item enters the processor, the collector stores the current total times in each state in a row label. When the item exits the state columns are updated with the difference between the totals at that point and the previously stored values.
In a combiner this will only work for the container item, since all other items will be placed in the container item immediately and thus not spend any time in the combiner itself. So you might want to restrict the Statistics Collector to only trigger for items entering through port 1.
Hello
Thanks @Felix Möhlmann
I did the same in my model, but the time column doesn't appear in the table
I haven't been able to configure the Label, i take (add Array Label)
I changed the group name in the code to set values.
but I'm not sure if I need to change anything else in the code.
Model2.fsmIf you can help me
Double click on the array value field and a window should open in which you can add entries to it. Use the script console to check the state numbers of various states through the defines (for example STATE_PROCESSING or STATE_SETUP which would return 2 and 21 respectively).
You need to define that the exit event should update the state columns.
And in your model you currently listen to the events of a separator. The Statistics Collector will only work for the first item properly since the others are created when the process time elapses. The state times for those items will always be 0. You can ignore them by only having the Stats Collector react to the On Exit event when a row for that item already exists (see the second model I attached in the answer).
11 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 | © 2025 Autodesk Inc. All rights reserved