When you use set_param to pause or stop a simulation, the commands are requests for such actions and the simulation doesn’t execute them immediately. You can use set_param to start a simulation after the stop command and to continue a simulation after the pause command. Simulink ® first completes uninterruptable work, such as solver steps and other commands that preceded the …
