Stopping a simulation

When you stop or pause a simulation, Embed completes the execution of the current time step before it halts. If the diagram contains an export block, the simulation data is written to the block. If the diagram contains the $lastpass variable, the value of the variable becomes TRUE to allow you to set up control logic to do such housekeeping tasks as turning off a motor, if you are performing real-time control.

You can also stop a simulation by wiring a stop or error block into your diagram. When a nonzero value enters the stop block, the simulation terminates.

To stop a simulation

      From the toolbar, choose .

      From the Simulation Control Panel, click Stop.

      Choose System > Stop.