question

Fakhrusy Sf avatar image
0 Likes"
Fakhrusy Sf asked Felix Möhlmann commented

How to record Idle of token in process flow?

Greetings,

I need some help..

1656517984660.png

currently, I want to record the idle time of token as there are being restricted by the zone(Only one token at one time) by using the statistics collector. How??

Thanks

FlexSim 18.2.3
processflowFloWorksstatistic collector
1656517984660.png (99.0 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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

Your statistics collector is already close to what you need. To update a previous row on a later event, you need to define a 'Row Value'. This serves as an identifier for each row. When an event happens and the row value already exists, FlexSim will update that row instead of creating a new one.

When you only want to track statistics for one activity, the token(-id) can be used as the row value. In the attached example I track the staytime for two activities. To have those in separate rows, I create a row value label, that is a combination of the activity name and the token id, on the events tab.

1656570229087.png

1656570253129.png

Then you just have to set which columns should be updated by what event(s). In this case, the ExitTime is determined by the exit event. The wait time can also be calculated as soon as the exit time is known.

1656570378493.png

StaytimeByToken_fm.fsm


1656570229087.png (43.1 KiB)
1656570253129.png (37.8 KiB)
1656570378493.png (36.0 KiB)
· 8
5 |100000

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

Fakhrusy Sf avatar image Fakhrusy Sf commented ·

Alright pretty understood...

My recipe in mixer is currently as below...

1656606043487.png

how to change the token id to product name as in my mixer recipe?

Appreciate if you can help me @Felix Möhlmann

0 Likes 0 ·
1656606043487.png (28.1 KiB)
Felix Möhlmann avatar image Felix Möhlmann Fakhrusy Sf commented ·
The token id can't be changed as it is a fixed unique identifier for each token. Instead you would use a label in place of the id.

I don't have experience with the Floworks module though. So I can't say how you might read the current recipe, sorry. Maybe post this as a new question, so more people will see it.

0 Likes 0 ·
Fakhrusy Sf avatar image Fakhrusy Sf Felix Möhlmann commented ·
Alright, I will do it soo
0 Likes 0 ·
Fakhrusy Sf avatar image Fakhrusy Sf commented ·
Is it necessary to group 2 zone together (On entry and On exit)?

How to do record idle time if it just one zone?

I try and got some parsing error...

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Fakhrusy Sf commented ·

Not necessarily, no. Using both On Entry and On Exit allows you to measure the time a token spends between two different activities (On Entry activity can be different from the On Exit activity).

If you are only interested in the staytime in one activity, you can listen to only the On Exit event and use the 'entryTime' property on the token to calculate the staytime.

1656611146391.png

This code should be posted into the 'Value' field of the WaitTime column. The EntryTime and ExitTime columns are no longer needed. When the row is first created this fills in the first wait time. Afterwards it increments the value by the wait time of the next token. (For the case that you want to measure the wait time per type)

0 Likes 0 ·
1656611146391.png (22.1 KiB)
Fakhrusy Sf avatar image Fakhrusy Sf Felix Möhlmann commented ·

I just want to record the idle time of the token in my process flow as below..

1656612434231.png

i got this error

1656612460470.png

and my wait time has a red flag in it.....

1656612495059.png

My flexsim file is as below.

Mini_Simulation_OilLubricantsV7.fsm

0 Likes 0 ·
Show more comments
Fakhrusy Sf avatar image Fakhrusy Sf Fakhrusy Sf commented ·
Can @Felix Möhlmann help me on the above??

Thank youu


0 Likes 0 ·
Jonah K avatar image
1 Like"
Jonah K answered Fakhrusy Sf commented

Select the zone statistics. From there you can pin the Request Staytime.1656534721123.png


1656534721123.png (14.2 KiB)
· 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.

Fakhrusy Sf avatar image Fakhrusy Sf commented ·

Thank you for the proposed answer.

But the statistic under zone is not that I want because it just calculated min, max and average of the staytime..

I want each individual token to be recorded how long the token is stayed in "Enter Zone" due to there have many token and I want to record all of it..

1656553079779.png

Thank youu

0 Likes 0 ·
1656553079779.png (20.5 KiB)
Fakhrusy Sf avatar image Fakhrusy Sf Fakhrusy Sf commented ·

My current setup of my statistic collector

1656553384874.png

1656553404301.png

How to record for exit time within the same row of the token id?

1656554456979.png

How the activity name can be same as my product name?


0 Likes 0 ·
1656553384874.png (30.6 KiB)
1656553404301.png (23.2 KiB)
1656554456979.png (10.8 KiB)

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.