question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Ben Wilson commented

Problem with a patient blocking the waiting line

cardiology_autosave_3.fsm

The attached model runs as expected with the first 6 patients. The 7th patient gets into WaitingLine2 and does not leave, thereby blocking the subsequent patients. Yet patients 2 and 3 follow the same path as patient 7 without any problems.

I cannot figure out what's causing this so I'm turning to the experts.

Thanks for your help

FlexSim 20.1.3
flexsim 20.1.3waiting line
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Tee Hiett, was Matthew Gillespie's answer helpful? If so, please click the red "Accept" button on 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 0 ·

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

The Wait in Line activity comes right after an Escort Patient activity where the patient is escorted to the waiting line. So the patient gets in the waiting line in the Escort Patient activity and starts walking down the line. This works OK as long as the escort activity ends before the person reaches the end of the line. In the case of your 7th patient, the patient reaches the end of the line before the staff finishes their travel. The Wait in Line activity listens to an event on the waiting line that says that a person reached the end of the line, however, if the patient is already at the end of the line when the activity starts this event will never fire.

I would recommend not escorting the patient directly into the waiting line. Instead escort them to a spot right next to the line and then use the Wait in Line activity to have them enter the line. That's what I did in the attached model.

cardiology_waitingLine.fsm

Alternatively you could leave the escort activity as it is and remove the Pat in Line activity.


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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