question

Howard avatar image
0 Likes"
Howard asked Logan Gold commented

How to calculate time between finished units?

I used statistics collector to find out the times for items arriving at the final queue.

I want to know how I can calculate the time difference between item at completion and show it on a dashboard.

1722517655730.png

globaltabledemohr-globallist-add completion length in performance measure.fsm

FlexSim 24.1.1
statistic collector
· 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Howard, was Regan Blackett's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Regan Blackett avatar image
0 Likes"
Regan Blackett answered

In your statistics collector, for the QueueIn2 On Entry event uncheck the box that says to "finish involved rows after this event"


Then on the columns tab, create a new column called "Time Delta" (or similar name); this is where the time difference between the On Entry and On Exit events will be stored).


For the Event Value of this new column type:

Model.time - collector.getValue(data.rowNum, 1)

This will subtract the time of the On Exit event from the "Time" column on the same row for the item.


In the Event/Column Connections, update the Time Delta column during the On Exit event.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.