Simulation Stepping Options

Simulation Stepping Options Overview

Use the Simulation Stepping Options dialog box to configure the time and the manner of manually stepping through a simulation.

Configuration

This pane appears when you select Step Back > Configure Simulation Stepping in the Simulation tab.

Simulation > Step Back > .

  1. Set the time at which you wish to pause the simulation

  2. To step backwards through a simulation, select Enable stepping back and specify the total number and frequency of snapshots.

  3. Specify the increment of steps by which the simulation steps either forward or backwards.

  4. To pause simulation at a particular time, select Pause simulation when time reaches check box and enter the pause time.

Tips

  • To start the Simulation Stepping Options dialog box from the Simulink® toolbar, click .

  • You can change the value while the simulation is running or paused.

See Also

Enable stepping back

Enable stepping back.

Settings

Default: Off

On

Enable stepping back.

Off

Disable stepping back.

Tip

Simulation stepping (forward and back) is available only for Normal and Accelerator modes.

Dependencies

This parameter enables the Maximum number of saved back steps and Interval between stored back steps parameters.

See Also

How Simulation Stepper Helps With Model Analysis

Maximum number of saved back steps

Enter the maximum number of snapshots that the software can capture. A snapshot at a particular simulation time captures all the information required to continue a simulation from that point.

Settings

Default: 10

Minimum: 0

Dependencies

Enable stepping back enables this parameter and the Interval between stored back steps parameter.

See Also

Interval between stored back steps

Enter the number of major time steps to take between capturing simulation snapshots.

Settings

Default: 10

Minimum: 1

Tip

The number of steps to skip between snapshots. This parameter enables you to save snapshots of simulation state for stepping backward at periodic intervals, such as every three steps forward. This interval is independent of the number of steps taken in either the forward or backward direction. Because taking simulation snapshots affects simulation speed, saving snapshots less often can improve simulation speed.

Dependencies

Enable stepping back enables this parameter and the Maximum number of saved back steps parameter.

See Also

Move back/forward by

Enter the number of major time steps for a single call to step forward or back.

Settings

Default: 1

Minimum: 1

Tip

The maximum number of steps, or snapshots, to capture while simulating forward. The greater the number, the more memory the simulation occupies and the longer the simulation takes to run.

See Also