question

Perrine D avatar image
0 Likes"
Perrine D asked Perrine D commented

Change my patient speed during the simulation

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
FlexSim HC 5.3.10
stairspatient speedstair
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
1 Like"
Matthew Gillespie answered Perrine D commented

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


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

Perrine D avatar image Perrine D commented ·

Thank you very much !

0 Likes 0 ·