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
step
One block
next
One time step
continue
To next breakpoint
run
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.


  Getting Online Help Advancing to the Next Block