This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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

Using SimStates in Stateflow

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.