Using Simulink | ![]() ![]() |
Running a Simulation
The Simulink debugger lets you run a simulation from the point at which it is currently suspended to the following points:
You select the amount to advance by selecting the appropriate button on the debugger toolbar in GUI mode
or by entering the appropriate debugger command in command-line mode.
Command |
Advances a Simulation |
|
One block |
|
One time step |
|
To next breakpoint |
|
To end of simulation, ignoring breakpoints |
Continuing a Simulation
In GUI mode, the debugger colors the Stop button red when it has suspended the simulation for any reason. To continue the simulation, click the Start/Continue button. In command-line mode, enter continue
to continue the simulation. The debugger continues the simulation to the next breakpoint (see Setting Breakpoints) or to the end of the simulation, whichever comes first.
Running a Simulation Nonstop
The run
command lets you run a simulation from the current point in the simulation to the end, skipping any intervening breakpoints. At the end of the simulation, the debugger returns you to the MATLAB command line. To continue debugging a model, you must restart the debugger.
Note
The GUI mode does not provide a graphical version of the run command. To run the simulation to the end, you must first clear all breakpoints and then click the Continue button.
|
![]() | Getting Online Help | Advancing to the Next Block | ![]() |