Change my patient speed during the simulation

Change my patient speed during the simulation

perrine_d
Not applicable
5 Views
2 Replies
Message 1 of 3

Change my patient speed during the simulation

perrine_d
Not applicable

[ FlexSim HC 5.3.10 ]

Hello,

I would like to model a staircase in Flexsim HC and for that I wanted to know if it was possible to change the speed of my patient when he arrives on a path node (Triggers / On arrival)?

Here are the solutions I tried but none works:

setvarnum(patient, "maxspeed", 10);
//unknown variable patient

getvarnode(patient, "maxspeed").value = 10;
//unknown variable patient

changeconveyorspeed(patient, 10)
//unknown variable patient
0 Likes
Accepted solutions (1)
6 Views
2 Replies
Replies (2)
Message 2 of 3

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

There is no "patient" variable defined in the header of a path node's OnArrival trigger, but there is a traveler variable defined.

setvarnum(traveler, "maxspeed", 200);

See the attached sample model. settravelerspeed.fsm



Matthew Gillespie
FlexSim Software Developer

Message 3 of 3

perrine_d
Not applicable

Thank you very much !

0 Likes