question

Christian B9 avatar image
0 Likes"
Christian B9 asked Ryan Clark commented

How to use another reference in the statistic collector besides item

Hello fellow FlexSimians,

I am facing the challenge of tracking a start and end time for flow items after they have gone through several join combiners in a row. My first steps where to define a label with the start time in the flow item, but it gets lost after the join processes.

So I set a SKU Label at the beginning and end of my measurement zone and wanted to use it as a primary key to connect flow item and time, because the first created flow item is also the first ending and so on. What is happening now is, that because of the unique row value command, which is set on "item", the start and endtime of each SKU is created in separate rows, rather than in one row per SKU and the opposing time is missing in each row. I do not fully understand the functionality of the statistic collector, so could you please help me on that problem and teach me, how to use SKU as the primary key for creating the statistics table? All examples I found where using the item ID in any way, but i cant do that, because the flow item moving in and out are not the same due to the several join operations in between.


Thank you in advance and greetings from Germany

FlexSim 19.0.0
statistic collectorunique row values
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

Ralf Gruber avatar image
0 Likes"
Ralf Gruber answered Ryan Clark commented

Christian,

here is a small sample model for what you are trying to do (if I understood correctly!):

20220210_StatisticsCollector.fsm

Good Luck!


· 2
5 |100000

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

Christian B9 avatar image Christian B9 commented ·

Thank you so much Ralf, that it is exactly what i wanted to know :))))))))))

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Christian B9 commented ·

Hi @Christian B9,

I'm glad Ralf was able to help you resolve your question! In the future, please respond to answers by replying with a comment on their answer rather than writing a new answer. That helps to keep things organized on this forum. Please see Best practices for using this Answers site - FlexSim Community for more info. Thanks!

0 Likes 0 ·