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
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
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.
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.
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:
15 People are following this question.
© 1993- FlexSim Software Products, Inc. All Rights Reserved.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.