question

Gabriel Morgante avatar image
0 Likes"
Gabriel Morgante asked Joshua S commented

Is there a way to measure the time a Label stay on the system?

Hello guys,

I am working with 3 cranes and need to measure the utilization of each one of them.
Using the default utilization pie chart isn't doing the job, because it only tracks the state changes against Idle but a lot of times my cranes are 'Idle' while waiting other cranes load/unload but in reallity it should be considered as "busy" because it has already received a task.
I thought about working around it using a trigger that sets a Label 'craneX_Req' == 1 on Task Start and 'craneX_Req' == 0 on Task Finish. This label with value of 1 represents perfectly the real utilization of my cranes.

The question is: how can I measure the total time a label stays on the system so I can relate it to the simulation total time and make a pie chart for the real utilization of my cranes?

I tryed using "event-triggered source" + "wait for event" listening to the Start and Finish Task of my crane and then measure the stay time of the tokens inside this logic, but I'm still noob with process flow so I coudn't do it properly... Anyone think this could be a solution and maybe could give me a hand with this?

Thanks!

Gabriel.

FlexSim 19.0.1
process flowdashboardsstatistics collectorcranes
· 3
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

christian.n avatar image
5 Likes"
christian.n answered Gabriel Morgante commented

Hey Gabriel.

I set up a model, where I have added a tracked variable label to an operator. Make sure it is set to categorical if you want to use it for states:

Then I simply set the utilization to 1 or 0 depending on whether the operator has a task.

Check the script window in the attached model to see how I get the utilization from the operator.

I still think you could use the built-in utilization pie chart with a little twist or two, but if you wish to to build the logic from scratch, this should serve as a nudge in the right direction. :-)

Best regards
Christian


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