Documentation

Contents

Customize the Simulation Data Inspector Interface

You can customize the information displayed in the Runs and Comparisons panes by performing the following tasks:

You can also modify how signals appear in a plot by performing the following tasks:

Add/Remove a Column in the Runs or Comparisons Pane

Columns in the Runs and Comparisons panes display plot configuration and signal properties. To add or remove a column, click the column selector button. From the list, select the columns that you want to display in the pane and click OK. After you select a column, the new column is added to the table in the order that it appears in the column options list.

Column Options for Runs Pane

Column OptionValue
ColorSignal line color
Line AppearanceSignal line style
UnitsSignal measurement units
ModelModel name for the signal data
Block NameName of the source block
Block PathPath to the source block for the signal
PortIndex of the signal output port
DimensionsNumber of dimensions of the signal
ChannelChannel of matrix data
RunName of a simulation run
Absolute TolerancePositive number (user-specified)
Relative TolerancePositive number (user-specified)
Interp MethodInterpolation method to plot data: zoh, linear (user-specified)
Sync MethodSynchronization method to align time vector: union, intersection, uniform (user-specified)
Time Series RootString signifying the name of the Simulink.Timeseries object
Time SourceString signifying the array containing the time data
Data SourceString identifying the path of the variable in the MATLAB® workspace (streamed signals do not have a data source because they do not come from the workspace)

Each column in the Comparisons pane has a Baseline and Compare To component corresponding to the Baseline or Compare To run selected on the Compare tab.

Column Options for Comparisons Pane

Column OptionValue
ColorSignal line color
Line AppearanceSignal line style
Absolute TolerancePositive number (user-specified)
Relative TolerancePositive number (user-specified)
UnitsSignal measurement units
RunName of the simulation run
Align BySignal alignment specified in Comparison Options
ModelModel name
Block NameName of the source block
Block PathPath to the source block for the signal
PortIndex of the signal output port
DimensionsDimensionality of the signal
Channel

Channel of matrix data

Interp Method

Interpolation method to plot data: zoh, linear (user-specified)

Sync Method

Synchronization method to align time vector: union, intersection, uniform (user-specified)

Time Series RootString signifying the name of the Simulink.Timeseries object
Time SourceString signifying the array containing the time data
Data SourceString identifying the path of the variable in the MATLAB workspace (streamed signals do not have a data source because they do not come from the workspace)

View Signal and Run Properties

To view the properties of a signal, highlight a signal in the Runs or Comparisons pane. The properties pane displays the signal information.

To view the properties of a run, highlight the run in the Runs or Comparisons pane. The properties pane displays the run information.

Rename a Run

To rename a run name, you can:

  • Double-click the run row, type the new run name, and press Enter.

  • Click the Name row in the properties pane, type the new run name, and press Enter.

To specify a new run naming rule for subsequent simulation runs, see Specify a Run Naming Rule.

Modify Grouping in Runs Pane

You can customize the organizational hierarchy of your data in the Runs pane. The data is first grouped by run name. The first Group By hierarchy cannot be modified. You can then group your data by model hierarchy, data hierarchy, or without a hierarchy. Changes to signal grouping apply only to the Runs pane, not the Comparisons pane.

If your model contains referenced models to view, you can group your data by model hierarchy and then by data hierarchy. As an example, change the grouping in the Runs pane to group by run name, then by model hierarchy, and then by data hierarchy.

  1. On the Visualize tab, click Group Signals.

  2. In the Group Signals dialog box, in the first Then By list, select Model Hierarchy.

  3. In the second Then By list, select Data Hierarchy.

  4. Click OK. The Runs pane groups the signal data by run name, then by model, and then by the data.

To remove the hierarchy and display a simple list of signals, select None from both Group Signals dialog box lists, and click OK.

Modify Signal Alignment for Comparisons

When the Simulation Data Inspector aligns signals across simulation runs, it attempts to match signals between runs using signal properties. For more information on the properties used for alignment, see How the Simulation Data Inspector Aligns Signals. To modify how signals are aligned for run comparisons:

  1. On the Compare tab, select Comparison Options.

  2. Select the Align By and Then By signal properties, and click OK.

  3. Click Compare Runs to align the signal data and compare the aligned signal data.

The default alignment options are by Data Source, then by Path, then by SID, and then by Signal Name.

Specify the Line Color and Style

To specify the line style, click in the Line column of a signal. If the line column is not shown, add the column using the column selector button .

To specify the line color, click in the Color column of a signal. If the color column is not shown, add the column using the column selector button .

Modify Streamed Signal Properties

You can modify the line color, line style, and the subplot arrangement of a streaming signal from the model. Changes you make in this dialog are applied to the next run in the Simulation Data Inspector at the start of simulation.

  1. In the model, right-click the streaming badge and select Properties to open the properties dialog box.

  2. To specify the line style and color, select the Custom style and color check box, and then select the style and color.

  3. To specify where a streamed signal is plotted at the start of simulation, enter a subplot number in the Subplots for signal display box. The number refers to the subplot number in column-major order.

  4. Click OK, and save the model.

For information on how to stream signals, see Stream Data to the Simulation Data Inspector.

Modify a Plot in the Simulation Data Inspector

GoalAction
Normalize the data for each signal from 0 to 1 along the y-axis of a plot.On the Format tab, select Normalize Y Axis.
Show markers at each sample point on a signal.On the Format tab, select Show Markers.
Set the plot axes minimum and maximum values.

On the Format tab, enter the axes limit values.

Zoom and pan to inspect the data.

On the Visualize tab, select one of the zoom actions.

Send a plot to a separate MATLAB figure window.

On the Visualize or Compare tab, click Send to Figure.

For more information on plotting and customizing your MATLAB data plots, see Types of MATLAB Plots.

Set the interpolation method used for plotting a signal to zero-order-hold or linear.

Select a signal in the Runs or Comparisons pane. In the properties table, select an interpolation method from the Interp Method list.

Unlink or link a subplot.

Select a subplot. On the Format tab, select Unlink a Subplot.

For more details, see Linked Subplots.

Was this topic helpful?