question

Zhengli Y avatar image
0 Likes"
Zhengli Y asked Zhengli Y commented

How to collect value of labels with statistics collector in process flow

HC4.fsm

Hi. I want to collect the tokens' exit time and the value of tokens given through the process at the same time, with statistics collector3 in this model. Could you please tell me how to get the expected results?

FlexSim 19.0.9
process flowstatistics collectortoken labels
hc4.fsm (503.1 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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Zhengli Y commented

Couple issues I found in your model:

- The console shows errors because the staff reference in 'Examine Patient' is not set.

1654678752927.png

- The ranks of the connectors coming from the 'Split' activity and going into the 'Join' are not synced correctly. As a result, the child token continues after the join, not the main token. (The child token should exit the split through the same rank connector as it enters the join).

1654678781476.png

- There is no 'wholeturns' label present on the token. The incremented label has the default name 'labelName'.

1654678803656.png

- The event depency to update the labelValue column is not set in the statistics collector.

1654678727998.png

- Lastly, and most importantly, when the token enters the 'Remoce Patient' activity it will be destroyed, so the collector can't actually read any data from it. Instead the statistics collector should listen to tokens exiting the previous activity.

1654679035739.png

hc4-fm.fsm


1654678727998.png (11.2 KiB)
1654678752927.png (17.8 KiB)
1654678781476.png (44.9 KiB)
1654678803656.png (11.0 KiB)
1654679035739.png (23.8 KiB)
hc4-fm.fsm (480.4 KiB)
· 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.

Zhengli Y avatar image Zhengli Y commented ·

Thank you for correcting my mistakes, and I have managed to collect these data

0 Likes 0 ·

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.