stop
Stop simulation debugging session
Syntax
Description
stop
stops a simulation debugging session.
You can use this function in a simulation debugging session started:
Note
This function is available only for simulation debugging sessions started programmatically and for interactive simulation debugging sessions while paused within a time step.
To stop a simulation using a logical signal in your model, use the Stop Simulation block.
To stop a simulation that was started using the Run button or
by using the set_param
function to specify a
simulation command, click the Stop button or use the
set_param
function to specify the stop simulation
command.
set_param(mdl,"SimulationCommand","stop")
Examples
Tips
To start a simulation debugging session interactively, add one
or more breakpoints to your model, and in the Breakpoints List,
check that Pause within time step is selected. When the simulation pauses
on a breakpoint, some of the programmatic debugging commands, such as the
stop
command, are available for use in the MATLAB Command Window.