question

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier asked Patrick Cloutier commented

How to change runspeed during simulation without a lag

In the attached sample model, I have a user event that sets the runspeed really high at time 0 so the filling of the line is not seen.

But I need to have the runspeed slow down when an item gets to Processor3.

I put runspeed(4) in the trigger on entry of Processor3 but the simulation always overshoots. It takes 20 or more items before it slows down when it should slowdown when the 1st item enters.

This is important because I'll need to reset the stats at that time and do other stuff.

So how to slow down runspeed without overshooting?

I tried with ProcessFlow instead of trigger but does the same thing.

SpeedControl.fsm

FlexSim 23.2.2
runspeed
speedcontrol.fsm (27.5 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
1 Like"
Jason Lightfoot answered Patrick Cloutier commented

Try:

stop();
runspeed(4);
await Delay.realTime(0.01);
go();
· 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·
That works. I don't understand how or why but it works.
0 Likes 0 ·