How to get the staytime on a chart by partition label from a zone using statistics collector?
How to get the staytime on a chart by partition label from a zone using statistics collector?
There is a section of templates dedicated to Zones. You can use any template called Zone Partition Stats to get what you want:
You can install the template, to figure out how it works. There are two important commands. The first command will tell you which partition a token is in, by asking the zone:
zonegetpartitionvaluefortoken(current, data.token)
In the Statistics Collector, current is the object that fires the event, a Zone in this case.
The second command will get the partition staytime for that Zone, given the instance and partition:
getstat(current, "PartitionStaytime", STAT_CURRENT, instance, data.Partition)
The template collector uses those two commands to get the correct value.
7 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