question

Viktor TT avatar image
1 Like"
Viktor TT asked Viktor TT commented

How can I collect data from Token-labels with Statistics Collector?

Hello!

I have a very complex problem, related Statistics Collector and Gant Charts. I've built a really complex however quite flexible model to visualize and optimize our standard work description at my company. The next milestone in the project to visualize the operator's work by Gant-chart. Basically, my OPs have 3 kinds of processes: Travel to a location where they Do a Task (spend time in delay + run animation), or until the machine work they have to Wait for Event (idle). I've already made this kind of diagram with the old version of Gant-chart. Unfortunately, after some update, the system got some modification, so the Gant-chart only work with statistic collector instead of GlobalTables now.

My goal: Get a Gant-chart which can show all the OPs and the machine current task when I move the cursor over a part of the diagram at the same time.

My idea is to collect data from the ProcessFlow: The tokens contain every relevant information (operator name, the name of the task, process time, etc.). If I focus on the specific Delay or Travel block in the ProcessFlow, I could collect Entry and Exit time to the Gant. Unfortunately, I can't reach the Token-labels.

If somebody has a solution to my problem, please let me know.

I prepared a simple model. I would be very appreciated If you could present your solution in it.

sample.fsm

Thank you for answers!

FlexSim 18.1.2
statistics collectorgant
sample.fsm (21.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.

1 Answer

tannerp avatar image
1 Like"
tannerp answered Viktor TT commented

Hi @Viktor TT,

I was able to use the following method to access the token labels:

In the Event Listening tab, I listened the the On Entry and On Exit of the "DO A TASK" activity. Something like this:

Then, in the Data Recording tab, I retrieved the token labels using the highlighted code in the image below. It was able to successfully access the token label (the table in the image shows the first token's values).

Unfortunately, I'm not sure where to take it from here. Hopefully this helps you build your charts! Let us know if we can provide more help.


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

Viktor TT avatar image Viktor TT commented ·

@Tanner Poulton Excellent! Your solution is very helpfull. This show me exactly what I want! Thank you so much!

1 Like 1 ·