question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Jordan Johnson edited

Process Flow Utilization Statistics Using Statistics Collector?

Hi Team,

I want to create utilization for 3 machines having process flow activity reference using statistics collector. I am using enumerate object to create activity names as row value and average content as column event.

1657018509604.png1657018634575.png


I think there is syntax issue. Can you help to know the issue?

05.07.2022_ProcessFlow_Statistics.fsm

Thank you!


FlexSim 21.0.10
statistics collectoractivitysyntaxenumerate
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 Jordan Johnson edited

When using enumerate rows, the update timing of the measured value (utilization) should be set to 'When the value is accessed'. Trying to update the value when the row is created (on reset) is causing the error message.

1657021261447.png

'getactivity()' expects the name of the activity as a string as the second parameter. The row value is a treenode, so you have to add '.name' to get the activity's name.

1657021231976.png


1657021231976.png (13.5 KiB)
1657021261447.png (12.3 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.

Ankur A3 avatar image Ankur A3 commented ·
0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Ankur A3 commented ·

Agreed, thanks @Felix Möhlmann, this is a great answer. Minor detail: if data.rowValue is an activity, then you don't need to use the getactivity() command. In the popup, you can just specify data.rowValue .

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.