question

Aniket Singh avatar image
0 Likes"
Aniket Singh asked Aniket Singh commented

Why is the calculated table taking array data as double?

Hello Flexsim,

I am currently working on a model that requires me to retrieve global table data using a calculated table generated by the experimenter for various scenarios. However, I am encountering an issue where the global table column contains array data, while the calculated table is being stored as a double. Could you please provide guidance on how I can store array data in the calculated table?

Thanks and Regards,

Aniket Singh

FlexSim 22.2.4
calculated table
· 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.

1 Answer

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

The tables of Statistics Collectors and Calculated Tables are stored in bundle format and thus cannot be assigned array data. If you need to retrieve such information from experimenter scenarios you could use the "On End Of Replaction" trigger to write it to an external file or dump it into a global table of the parent instance (that started the experiment run).

https://answers.flexsim.com/questions/44609/experimenter-and-global-table-output.html

· 3
5 |100000

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

Aniket Singh avatar image Aniket Singh commented ·


Click to up vote 0 Likes"

Hello @Felix Möhlmann ,

Thank you for your response. I have written code at the end of the replication in the experimenter and have dumped the global table to a new table. All values are coming correctly except for the array column, which is returning null (empty). Could you please provide further guidance on how to retrieve the array values?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Aniket Singh commented ·

It works in my test. Can't really say what might be the problem without seeing the model.

copy-global-table-from-experiment.fsm

0 Likes 0 ·
Aniket Singh avatar image Aniket Singh Felix Möhlmann commented ·
Thanks You @Felix Möhlmann Its working.
0 Likes 0 ·