I want to know the exact time when all items have finished arriving in the queue.

I want to know the exact time when all items have finished arriving in the queue.

kentaro_banABGLD
Advocate Advocate
220 Views
3 Replies
Message 1 of 4

I want to know the exact time when all items have finished arriving in the queue.

kentaro_banABGLD
Advocate
Advocate

This is a follow-up to my previous post, "How to create a simulation that accounts for non-processing time." I would like to add a new requirement based on the same simulation data.

In the current model, is there a way to display the exact time (in the format "HH:MM:SS") at the moment when 200 items have finished being processed and arrive at the queue "QCPS0828_6_06" (connected to the 1st output port of the processor)? If possible, I would like to apply this to the 2nd port, 3rd port, and so on.

Please consider the following constraints:

  • I am open to using labels or specific values, but I would prefer a solution that does not use Process Flow.

  • If possible, I would appreciate it if you could provide a sample model or data.

I have already tried using Global Tables and Statistics Collectors, but I couldn't get them to work as intended. I would appreciate your guidance on this, along with the points discussed in my previous post.

0 Likes
Accepted solutions (2)
221 Views
3 Replies
Replies (3)
Message 2 of 4

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

To do this you need to mark the last item in a batch in some way. The total number of items in the batch is known from the sequence table. If you add this number and also an index to each item, you can identify the last item by both values being the same. This condition can be used in a Statistics Collector to create a new row and store the current time.

0 Likes
Message 3 of 4

kentaro_banABGLD
Advocate
Advocate

Thank you for providing the data. However, it is quite advanced for my current level of knowledge, and it will take me some time to fully understand it. Could you please let me know which section of the tutorial this corresponds to?

0 Likes
Message 4 of 4

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

There is no direct tutorial that would correspond to setting up the item labels. I woul recommend to read through the coding overview to familiarize yourself with the basics. Similar code that uses a counter label can for example be found in various "Round Robin" pick options.

https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/WritingLogic/WritingLogic.html

Similarly, I would suggest you check out the Statistics Collector documentation. There are also tutorials available, but those have you build different collectors without going into much depth of why they are build that way.

https://docs.flexsim.com/en/25.1/GettingData/AdvancedDataGathering/UsingStatsCollector/UsingStatsCol...

 

0 Likes