Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Record Data with the Simulation Data Inspector

Some logged data does not log directly into the Simulation Data Inspector and can be recorded instead. Recorded data is accumulated during simulation and then automatically imported into the Simulation Data Inspector when the simulation completes.

Configure Your Model to Record Data

Signals must be logged to the workspace to record them with the Simulation Data Inspector. To configure logged workspace data for recording:

  1. Click the Simulation Data Inspector drop-down on the Simulink® Editor toolbar and select Configure Logging.

    The Data Import/Export pane of the Configuration Parameters dialog box opens.

  2. In the Data Import/Export pane, mark the check box labeled Record logged workspace data in Simulation Data Inspector.

      Note:   To record States and Outputs, Dataset is the recommended Format. You can also set Format to Structure with time or Array. If Format is configured as Array, you must also log Time for States and Outputs to record to the Simulation Data Inspector.

  3. Click OK.

To disable recording, navigate back to the Data Import/Export pane of the Configuration Parameters dialog box and clear the check box labeled Record logged workspace data in Simulation Data Inspector.

Record a Run

Once you have configured your model to record data, simulate the model to record a run.

  1. Open the Simulation Data Inspector by clicking the Simulation Data Inspector button on the Simulink Editor toolbar.

  2. To record data, simulate the model.

    When the simulation completes, the Simulation Data Inspector button appears highlighted to indicate that new simulation data is available in the Simulation Data Inspector.

Related Topics

Was this topic helpful?