Run Individual Simulations Interactively

Run individual simulations directly from the Simulink® Editor. View live results and interact with simulations.

You can simulate a model at any time by clicking the Run button on the Simulink Editor.

The simulation runs from the start time to the stop time specified in the model configuration. While the simulation is running, you can interact with the simulation, tune parameters, stop or pause the simulation, and launch simulations of other models.

If an error occurs during simulation, simulation stops, and the Diagnostic Viewer opens to help you determine the cause of the error.

For more information on starting and stopping simulations, see Simulate a Model Interactively.

Examples and How To

Run Simulation

Simulate a Model Interactively

How to start, suspend, and stop a simulation interactively.

Step Through Simulation

Step Through a Simulation

Step forward and backward through a simulation.

Set Conditional Breakpoints for Stepping a Simulation

How to pause simulation using conditional breakpoints.

Perform Iterative Simulations with Fast Restart

Fast Restart Workflow

How to configure your model to prepare for Fast Restart simulation.

Get Started with Fast Restart

How to prepare a model to use Fast Restart.

Simulate a Model Using Fast Restart

How to simulate a model in Fast Restart mode.


Simulate Dynamic Systems

Simulation Phases in Dynamic Systems

How the Simulink software simulates a dynamic system.

About Solvers

How to select the optimal solver for simulating a model.

Zero-Crossing Detection

Learn how zero-crossing events affect simulation.

Algebraic Loops

Learn how algebraic loops are created during simulation and how to interpret and handle them.

Choosing a Simulation Mode

How to choose between Normal, Accelerator, and Rapid Accelerator modes

Save Simulation

Save and Restore Simulation State as SimState

How to save and restore the complete simulation state for further simulation.

Step Through Simulation

How Simulation Stepper Helps With Model Analysis

Learn about the Simulation Stepper.

How Stepping Through a Simulation Works

How simulation snapshots work.

Use Simulation Stepper

How to step through a simulation.

Simulation Stepper Limitations

Blocks and modeling constructs that Simulation Stepper supports.

Simulation Stepping Options

Parameters for controlling simulation stepping.

Perform Iterative Simulations with Fast Restart

How Fast Restart Improves Iterative Simulations

When to use Fast Restart for speeding up simulation.

Stop Simulation and Exit Fast Restart

How to exit Fast Restart simulation mode.

Fast Restart Methodology

Parameter tuning and model method execution during Fast Restart.

Factors Affecting Fast Restart

Limitations of running simulations in Fast Restart mode.

Was this topic helpful?