Main Content

Inspecting Data Using the Simulation Data Inspector

What Is the Simulation Data Inspector?

The Simulation Data Inspector allows you to view data logged during the fixed-point conversion process. You can use it to inspect and compare the inputs and outputs to the floating-point and fixed-point versions of your algorithm.

For fixed-point conversion, there is no programmatic interface for the Simulation Data Inspector.

Import Logged Data

Before importing data into the Simulation Data Inspector, you must have previously logged data to the base workspace or to a MAT-file.

Export Logged Data

The Simulation Data Inspector provides the capability to save data collected by the fixed-point conversion process to a MAT-file that you can later reload. The format of the MAT-file is different from the format of a MAT-file created from the base workspace.

Group Signals

You can customize the organization of your logged data in the Simulation Data Inspector Runs pane. By default, data is first organized by run. You can then organize your data by logged variable or no hierarchy.

Run Options

You can configure the Simulation Data Inspector to:

  • Append New Runs

    In the Run Options dialog box, the default is set to add new runs to the bottom of the run list. To append new runs to the top of the list, select Add new runs at top.

  • Specify a Run Naming Rule

    To specify run naming rules, in the Simulation Data Inspector toolbar, click Run Options.

Create Report

You can create a report of the runs or comparison plots. Specify the name and location of the report file. By default, the Simulation Data Inspector overwrites existing files. To preserve existing reports, select If report exists, increment file name to prevent overwriting.

Comparison Options

To change how signals are matched when runs are compared, specify the Align by and Then by parameters and then click OK.

Enabling Plotting Using the Simulation Data Inspector

To enable the Simulation Data Inspector in the Fixed-Point Conversion tool, see Enable Plotting Using the Simulation Data Inspector.

To enable the Simulation Data Inspector in the programmatic workflow, see Enable Plotting Using the Simulation Data Inspector.

Save and Load Simulation Data Inspector Sessions

If you have data in the Simulation Data Inspector and you want to archive or share the data to view in the Simulation Data Inspector later, save the Simulation Data Inspector session. When you save a Simulation Data Inspector session, the MAT-file contains:

  • All runs, data, and properties from the Runs and Comparisons panes.

  • Check box selection state for data in the Runs pane.

Save a Session to a MAT-File

  1. On the Visualize tab, click Save.

  2. Browse to where you want to save the MAT-file to, name the file, and click Save.

Load a Saved Simulation Data Inspector Simulation

  1. On the Visualize tab, click Open.

  2. Browse, select the MAT-file saved from the Simulation Data Inspector, and click Open.

  3. If data in the session is plotted on multiple subplots, on the Format tab, click Subplots and select the subplot layout.