question

Nilsson avatar image
0 Likes"
Nilsson asked Nilsson commented

How to use statistics collector on only some objects from a group?


I have set up a parameter that changes how many agvs I can aquire from resource with Count. I would like the same for my statistical collector, is that possible? For now it still collects the idle state for the other agvs that aren't used.

1710416186675.png


1710416225483.png

1710416431373.png

FlexSim 24.1.0
statistic collectorparametrize
1710416186675.png (17.5 KiB)
1710416225483.png (58.1 KiB)
1710416431373.png (24.6 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 Nilsson commented

You could use an On Reset event instead of the Enumerate option to create a row for each object in the group up to the index given by the parameter.

This would be a possible version for the Row Value(s) code.

Array objects = Group("Drivers").toFlatArray();
while(objects.length > Model.parameters.NumberOfDrivers) {     objects.pop(); } return objects;
· 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.

Nilsson avatar image Nilsson commented ·

Thank you very much! Exactly what I needed.

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.