Documentation

Saving and Restoring Simulation State

Restart your simulation from nonzero time

Save a simulation state of a Stateflow® chart, including simulation output, data, and configuration parameters at a specific time. Run segments of long simulations and save segments to investigate specific times in your simulation.

Topics

What Is a SimState?

Use SimStates to save and investigate specific time segments in your model simulation.

Benefits of Using a Snapshot of the Simulation State

Use SimStates to test hard-to-reach chart configurations.

Methods for Interacting with the SimState of a Chart

Use specific methods to interact with the SimState of a chart.

Rules for Using the SimState of a Chart

Limitations, rules, and restrictions of using and modifying SimStates.

Best Practices for Saving the SimState of a Chart

Use MAT-Files and scripts to save a SimState.

Divide a Long Simulation into Segments

Save long simulations into segments using SimStates.

Test a Unique Chart Configuration

Test a chart response for a hard-to-reach configurations.

Test a Chart with Fault Detection and Redundant Logic

Test the response of a chart to failures by using fault detection and redundant logic.

Was this topic helpful?