question

Tobias Lorey avatar image
0 Likes"
Tobias Lorey asked Chris Smith answered

Tracking into GlobalTable

Hi! I am currently working at a very basic set-up:

Source - Queue - Processor - Queue - Sink

I am trying to track the flow of items (only one type) into a GlobalTable, writing the arrival times for each item (rows) and step (columns) into the table. How can this be done without having to specify an arrival schedule in the source and instead using an inter-arrival time of e.g. 60 minutes? Thank you!

FlexSim 16.1.2
global tabletracking
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

·
Chris Smith avatar image
2 Likes"
Chris Smith answered

This can be done using the picklists in the onCreation and onEntry triggers of each of the objects. In the source on the onCreation trigger you can set a label that will later be used as the row in the table (used getoutput(current)+1 to create a row reference). Then you can create a row in the table and finally set the row's first column value equal to the current model time. Then in each subsequent process you just set the value of the column in the table to the current time in the onEntry trigger. Reference the attached model for more detail.


arrivaltable.fsm (15.7 KiB)
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.