question

Nilsson avatar image
0 Likes"
Nilsson asked Nilsson commented

Using custom state profile in Statistics Collectors

Hi!

I am using this to put the travel empty in a table.

1709817589075.png

I have also created this custom state profile:

1709817675429.png

I can't get it to work to access the different states, for instance total time at "DriverLoad3" in statistics collectors (The states are working and adding the correct time).

How should I do?

FlexSim 24.1.0
statistic collectorcustom state profile
1709817589075.png (63.9 KiB)
1709817675429.png (69.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

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

The profile rank needs to be passed into "state()". (Its an optional parameter, so the empty brackets access profile 0 - the default profile)

For example "obj.stats.state(1)..." accesses the first custom profile you added (profile at subnode rank 1 under the "state_profiles" node).

· 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 ·
Thanks! That worked.
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.