Contents

Record Logged Simulation Data

You can configure your model and the Simulation Data Inspector to record logged signal data from a simulation run. Logged signals are marked with a logging badge in the model.

Configure Model for Recording Logged Data

  1. Set up your model to log signal data, as in Export Signal Data Using Signal Logging.

  2. On the Simulink® Editor toolbar, click the Simulation Data Inspector button arrow and select Configure Logging and Streaming to open the Data Import/Export pane of the Configuration Parameters dialog.

  3. In the Data Import/Export pane:

    • Select the Signal logging check box.

    • Select the Record logged workspace data in Simulation Data Inspector check box.

        Note:   Alternatively, you can turn record on in the Simulation Data Inspector menu. Click the Simulation Data Inspector button arrow and select Send Logged Workspace Data to Data Inspector to turn record on.

  4. Click OK.

  5. To log a particular signal, select the signal in the model, click the Simulation Data Inspector button arrow, and then select Log Selected Signals to Workspace. The signal logging badge appears on the signal marked for logging.

Simulate Model and Record a Run

  1. Click the Simulation Data Inspector button on the Simulink Editor toolbar to open the Simulation Data Inspector.

  2. To send logged data to the Simulation Data Inspector, simulate the model.

  3. When the simulation is done, the Simulation Data Inspector button appears highlighted to indicate that new simulation output is available in the Simulation Data Inspector.

    The logged data appears in the Runs pane of the Simulation Data Inspector.

  4. To record another simulation run, simulate the model again. When the simulation is done, the data appears as a new run.

    To configure the Simulation Data Inspector to overwrite a run, see Overwrite a Run.

  5. When you are done importing logged data for your simulations, click the Simulation Data Inspector button arrow and select Send Logged Workspace Data to Data Inspector to turn recording off.

Related Examples

Was this topic helpful?