You can modify the layout and content of the panels in the Simulation Data Inspector to help you organize your data. You can set new run naming rules, change how signals are grouped within runs in the navigation pane, and use filters to find the signal you want to inspect.
You can collapse and expand the navigation, archive, and Properties panes in the Simulation Data Inspector using the chevrons in the upper-right corner of each pane, highlighted in the image.
You can customize the hierarchy for how your data is grouped in the Inspect and Compare panes. The data is grouped first by run name, which cannot be modified. You can then group your data by data or model hierarchy. If you have a Simscape™ license, you can also group your data by physical system hierarchy. Changes to signal grouping apply to both the Inspect and Compare panes, regardless of the pane from which you edit the grouping.
As an example, change the Simulation Data Inspector settings to group signals by run name, then by model hierarchy, and then by data hierarchy.
Click the Preferences button in the upper right of the navigation pane.
On the Group pane, select Model
Hierarchy
in the first Then By list.
In the second Then By list, select Data
Hierarchy
.
The Simulation Data Inspector groups the signals by run name, then by model hierarchy, and then by data hierarchy. By default, all hierarchies within the run are collapsed. You can expand the model group to see the logged signals.
Signals inside subsystem A are still collapsed under A, and the signals in the Mux block output are grouped under Mux: 1. You can expand these groups to see the rest of the signals in the run. The check boxes for signals remain on the left side of the navigation pane, and the signal names indent to indicate the level of hierarchy.
To remove the hierarchy and display a flat list of signals in each run, select
None
from both Then By lists on the
Group pane.
You can also specify whether to add new runs to the top or bottom of the runs list in the Inspect pane. The New Run tab in the Preferences window allows you to configure how new runs are added to the Inspect pane. The default configuration adds new runs to the bottom of the runs list.
You can specify how existing and future runs are named in the Simulation Data Inspector.
To rename an existing run double-click the run row, type the new run name, and press Enter. Alternatively, you can select the run you want to rename and type the new name into the Name row of the properties pane.
To specify how you would like the Simulation Data Inspector to name future runs, open
the New Run tab on the Preferences
menu. The default value for the New run naming
rule is
Run <run_index>: <model_name>
.
To change the run naming rule, enter your desired options from the list of available
parameters along with any other regular characters. For example, to include the simulation
mode in subsequent run names, enter Run <run_index>: <model_name>:
<sim_mode>
in the New run naming rule box. With this
rule, simulating model slexAircraftExample
in normal
mode, the name of the first run appears as Run 1: slexAircraftExample:
normal
.
You can filter runs and signals displayed in the work area of the Inspect pane and in the Compare pane to help search through large amounts of data in the Simulation Data Inspector. You can filter the data by text contained in the run or signal names and properties.
To show only signals named alpha, rad
, type alpha
into the filter signals text box. Matches for the search criteria are highlighted in the
filter results displayed in the pane. The filter dialog box suggests completions for the
text typed into the search query.
To filter for a signal or run property, use colons to separate the property name and
filter value. For example, port:1
filters for signals that use port 1 in
the model. Because the property column is not visible in the Inspect
pane, the result is not highlighted.
You can also construct more complicated filter queries that include multiple properties using the Advanced section of the filter dialog box.
Open the Advanced section of the filter dialog box.
Select a column to add to the filter, and enter the value.
Note
Filters work by matching text. For example, an absolute tolerance filter for a
value of 00.1
does not return signals with an absolute tolerance
of 0.1
.
For convenience, you can save filter configurations. To save the filter, enter a name in the Save Search As box and click Save on the filter dialog box. Saved filters show as options in the filter list.