Documentation Center

  • Trial Software
  • Product Updates


Record Simulation Data

You can configure your model and the Simulation Data Inspector to automatically recorded data from a simulation run.

Configure Model for Recording Data

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

  2. Select Simulation > Model Configuration Parameters to open the Configuration Parameters dialog box.

  3. In the Data Import/Export pane:

    • Select the Signal logging check box.

    • Select the Record and inspect simulation output check box.

  4. Click Apply and OK.

Configure Simulation Data Inspector

  1. To open the Simulation Data Inspector, on the Simulink® Editor toolbar, click the Record button arrow.

    From the menu, select Simulation Data Inspector.

  2. To specify run configuration options, in the Simulation Data Inspector, click the Run Configuration button.

  3. To specify that new runs are added to the top of the run list, in the Run Configuration dialog box, select Add new runs at top.

  4. To specify the rule for the run name, enter available tokens from the list and any other characters in the Run naming rule box.

  5. Click OK.

For more information, see Run Management Configuration.

Simulate Model and Record a Run

  1. On the Simulink Editor toolbar, click the Record button on. You can click the Record button to toggle on and off recording data for a simulation.

  2. Simulate the model.

    When the simulation is done, a notification bar appears in the Simulink Editor.

  3. In the notification bar, click the link to open the Simulation Data Inspector.

    The simulation data automatically appears in the Signal Browser table.

  4. To record another simulation run, leave the Record button on, and simulate the model again.

    When the simulation is done, the data appears as another new run. To configure the Simulation Data Inspector to overwrite a run, see Overwrite a Run.

  5. When you are done importing data for your simulations, click the Record button off.

    Note:   If the Record button is not on, the configuration parameter Data Import/Export > Record and inspect simulation output is no longer selected.

Related Examples

Was this topic helpful?