question

Lenny C avatar image
0 Likes"
Lenny C asked Lenny C commented

Capture Waiting time using Zone

Hi,

I have patients going into 2 different location but entering/leaving the same zone. When I attempt to track the respective waiting time of the tokens, only 1 is shown on the dashboard/statistic collector. It seems like only the data of 1 patient is being captured.

StatsCollection_Zones.fsm

FlexSim 20.1.3
flexsim 20.1.3statistics collectorzone
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @lenny.c, was Eric M's answers helpful? If so, please click the red "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Eric M avatar image
0 Likes"
Eric M answered Lenny C commented

Hi @Lenny C, it looks like this is happening because all of the patients have the same delay of 1s. If you put a distribution into the delay, you'll see all 5 times show up.

statscollection-zones_1.fsm


· 5
5 |100000

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

Lenny C avatar image Lenny C commented ·
Hi @Eric M, I'm having my patients enter in 1 second interval. Although they all have the same amount of delay, shouldn't their data appear in 1 second intervals after one another on the graph of staytime vs time? i.e 5 data points of 10seconds with 1second spacing apart.
0 Likes 0 ·
Eric M avatar image Eric M Lenny C commented ·

The current stats collector you're using only adds a new row when the Staytime value changes. Since it never changes, it only records data once. I added another stats collector and chart for how you might get the staytime for each patient.

statscollection-zones-2.fsm

0 Likes 0 ·
Lenny C avatar image Lenny C Eric M commented ·
Nice! Could you share how you set the new stats collector and chart up? Thank you!
0 Likes 0 ·
Show more comments