question

Martin C10 avatar image
1 Like"
Martin C10 asked Martin C10 edited

how to trigger the plane that person step on it

螢幕擷取畫面-247.pngchooseelevatorbank-2.fsm

I want to collect person's label and add entry time to global table when person step on the plane , how can I set trigger event?

FlexSim 20.0.10
FlexSim 22.0.1
trigger
5 |100000

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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Martin C10 commented

You can listen to the patient's elevator events to get these time stamps. You also don't really need all those floor spots. You can just send patients to an x,y,z position in front of an elevator. Here's an example.

ChooseElevator.fsm

I'm listening to the patient's OnAStarElevatorBankArrival, OnAStarElevatorEntry, OnAStarElevatorExit, and OnAStarElevatorBankContinue events.



chooseelevator.fsm (90.9 KiB)
· 2
5 |100000

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

Martin C10 avatar image Martin C10 commented ·

thanks

0 Likes 0 ·
Martin C10 avatar image Martin C10 commented ·

Sending patients to a fixed location is a great workaround, and the custom code you created fulfills my target, you are a genius

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Martin C10 edited

This is easily done with a Statistics collector that listens to the completed Travel tasks - which are in turn detected in the process flow.

1648215407030.png1648215445461.png

See attached model.

chooseelevatorbank-2_jl.fsm


· 2
5 |100000

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

Martin C10 avatar image Martin C10 commented ·
thanks
0 Likes 0 ·
Martin C10 avatar image Martin C10 commented ·

This solution is a truly convenient way to get the data, appreciate

0 Likes 0 ·

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.