Can't get statistics for chairs1

Can't get statistics for chairs1

alice6
Not applicable
19 Views
2 Replies
Message 1 of 3

Can't get statistics for chairs1

alice6
Not applicable

Emergencyroomsim1_autosave.fsm

Why aren't we able to get any statistics from chairs1? We want to measure the amount of time the patients have to wait there. Can someone help us?


Version 20.0.2

0 Likes
Accepted solutions (1)
20 Views
2 Replies
Replies (2)
Message 2 of 3

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @alice, I can't really run your model because I get a bunch of errors; however, I hear what you're trying to do. Here's a sample model you can look at with a Statistics Collector that keeps track of a person's arrival, exit, and total staytime at a set of chairs.

Chairs Staytime Statistics Collector.fsm

I'll break it down. Start by adding two events to listen to: Chairs1 - On Entry and Chairs1 - On Exit. When a person enters the Chairs1 waiting area, it will record the Model.time. Then, when that same person exits the Chairs1 waiting area, it will record the Model.time. After that, I do a simple subtraction between the exit time and the entry time to get the total staytime of a person in those Chairs.

1671755400478.png

1671755418222.png

1671755424707.png

1671755433812.png

Note: for the Staytime Column Value, I opened the Custom Code to define "table" as Table("StatisticsCollector1") to make things prettier.

Also, make sure to directly link those events and columns:

1671755486784.png


0 Likes
Message 3 of 3

andrew_o2
Not applicable

Hi @alice, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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