question

Ana Ta avatar image
0 Likes"
Ana Ta asked Jacob Gillespie edited

computing the time difference between two different activities in processflow

Hello,

How can I compute the time difference between two different activities in process flow?
In the process flow that I attached, I want to store the time difference between when AGV gets an object from Source and put it on the relevant Queue. Additionally, I also want to compute the time that AGV doesn't have any load on itself. Is there anyonewho can give me some hints?

Thanks a lot,

FlexSim 17.2.1
agvtimer
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

·
Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Jacob Gillespie edited

I would use a Statistics Collector and a couple Calculated Tables to do this.

First make a Statistics Collector and subscribe to the On Exit event of the Load and Unload activities. (See the top left of the screenshot)

Then add a shared Event Data Label which sets itself using the counter label on the token. This is to identify which events should be paired with each other. (See bottom of the above screenshot)

Next go to the Data Recording tab and set the Row Creation Mode to Unique Row Values and make it by the counter label.

Make two columns LoadTime, and UnloadTime. Update By Event Dependency for both. Set the value for both to Model.statisticalTime.

Lastly set the Event Dependencies.

Now create two Calculated Tables which will calculate the Transport Time and the Not Loaded Time.

Rick click and select View Table... to see the Statistics Collector and Calculated Tables update their data as the model runs. You can also use a chart to visualize the data from a Statistics Collector or Calculated Table.

Here is your model with the Statistics Collector and Calculated Tables I suggested.

agv-compute-time-difference-edit.fsm


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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