Using Simulink | ![]() ![]() |
Starting the Simulation
To start the simulation, select the Start/Continue button in the debugger's toolbar.
The simulation starts and stops at the first block to be executed. The debugger opens the model window's browser pane and highlights the block at which model execution has stopped.
The debugger displays the simulation start time and a debug command prompt in the MATLAB command window when the debugger is running in command-line mode or in the debugger's output pane when the debugger is running in GUI mode.
The command prompt displays the block index (see Block Indexes) and the name of the first block to be executed.
At this point, you can set breakpoints, run the simulation step by step, continue the simulation to the next breakpoint or end, examine data, or perform other debugging tasks. The following sections explain how to use the debugger's graphical controls to perform these debugging tasks.
![]() | Starting the Debugger | Using the Debugger's Command-Line Interface | ![]() |