question

Sia Sengchoon193 avatar image
0 Likes"
Sia Sengchoon193 asked Jason Lightfoot commented

How to collect processing time for each product (from source to sink)?

How to collect the processing time of each product and make it into a table that can be exported?

From source to sink, including waiting time at all stations.

1644703771463.png

total process time.fsm

FlexSim 21.2.1
process timetabledata collector
1644703771463.png (148.9 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jason Lightfoot commented

Each item stores its entry time in model. You can get this value by command getcreationtime.
https://docs.flexsim.com/en/21.2/Reference/CodingInFlexSim/CommandReference/Commands.html#getcreationtime

if you compute the difference of current runtime, when an item is entering a sink to its creation time, you get the total stay time of this item in your model.

https://docs.flexsim.com/en/21.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Model.html#Property-time

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

Sia Sengchoon193 avatar image Sia Sengchoon193 commented ·

@Joerg Vogel

Thank you very much for your answer, but how to execute the command?

where to enter this code?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Sia Sengchoon193 commented ·
Wherever you want to gather the information. Suggestions might include a stats collector, a detection process flow or the entry trigger of the sink.
0 Likes 0 ·