question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Ankur A3 commented

How to write values in statistics collector table?

Hi Team,

I am collecting results for every patient using statistics collector table. But I am not able to get right values.

Could you help me out with this dummy model?

1656527649101.png

29.06.2022_Data_Using_SC.fsm

Thank you!

FlexSim 21.0.10
statistics collectordataevent
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

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Ankur A3 commented

29062022-data-using-sc_1.fsm

Here are the changed I made:

  1. Both events use data.token as the Row Value. If you want to update a row with a later event, the later event needs to have the same row value as the first event.
  2. All columns store doubles. You don't need to store strings in this case, since all your columns report numbers.
  3. All columns update when the row is added or updated by events. There's no reason to have any "when accessed" columns in this case.
  4. The first two columns have a Row Add value. The second two columns have an Event Value.
  5. The second two columns are updated by the second event.

Consider looking at this very similar tutorial:
https://docs.flexsim.com/en/22.1/Tutorials/AdditionalTools/Tutorial2StatsCollector/2-6PickTimeByType/2-6PickTimeByType.html

The only difference is that the tutorial records a Type column, but you would change that to a Patient ID column.

You may also be interested in this article on how the statistics collector works, visualized as an AGV:
https://answers.flexsim.com/articles/105427/visualizing-the-logic-of-the-statistics-collector.html


· 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.

Ankur A3 avatar image Ankur A3 commented ·

Thanks @Jordan Johnson for detailed explanation!

0 Likes 0 ·