question

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

How can I get the companion to go to the patient's destination in this model?

elevators-th-02-14-2017.fsm

In the attached model, only patient PCI 8 is scheduled to enter as I try to make the model perform correctly. The companion will go with the patient to the SecondFloorProcess but will not go into the process and produces Error 278. I cannot identify what I'm doing wrong. Suggestions? Thanks for your help. Tee

FlexSim HC 5.1.0
healthcarecompanionselevatorshealthcare hc
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Tee Hiett commented

The first issue is that the PatientArrivals2 object is sending two messages, one when the patient leaves and the second when the companion leaves. You really only want a message sent when the patient leaves so in the Send Message trigger you should change the condition field from true to getlabel(patient, "PCI") == 8.

After you fix that you'll see a similar error a bit later when the patient tries to leave the SecondFloorProcess object. This one is just a timing issue. Move the Send Message trigger from the Activity Started Trigger to the Activity Finished Trigger.

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

Tee Hiett avatar image Tee Hiett commented ·

Thanks, Matthew, I completely forgot about the companions leaving the arrival objects. This worked like a charm. We're just about through with our elevator model :-).

Tee

0 Likes 0 ·