question

Nathaniel W avatar image
0 Likes"
Nathaniel W asked Nathaniel W commented

Event Triggered Source Only Working Once

AdvancedBase.fsm

Hello, I am encountering a strange behavior in my simulation. It appears as if an event triggered source is only working once. I have created an event triggered source which will start a cleaning process when a gurney's output is changed (i.e. when a patient leaves the gurney). I have attached a screenshot of the source and I have attached my model. For gurney 1, it works perfectly as the HCA cleans the gurney when patient one leaves at 9:04. However, when patient 4 leaves at 11:20, it doesn't work, and it also doesn't work when patient 7 leaves. This problem also happens for gurney 2, when it works for patient 2 but not patient 5, and for gurney 3, when it works for patient 3 but not patient 6. I am pretty confused as to why it works at first but not for any additional patients, so any help would be much appreciated. Thank you!


FlexSim 21.0.2
flexsim 21.0.2event sourceequipment cleaning
advancedbase.fsm (984.6 KiB)
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Nathaniel W commented

Not sure why this was happening - I changed it to On Exit - removed the port condition and changed it back to OnOutputChange (and also changed it to be Gurney instance based process flow) and now it works. I'll send a note to the dev team to check for an issue.

Update attached.

advancedbase_jl.fsm


advancedbase-jl.fsm (986.1 KiB)
· 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.

Nathaniel W avatar image Nathaniel W commented ·

Great, thank you so much Jason!

0 Likes 0 ·