Analyze Simulation Results
You can use the Simulation Data Inspector to inspect and compare data from multiple simulations. For example, you can check to see if the difference between two signals is within a certain design tolerance. To learn more, see Simulation Data Inspector.
Environment and Appearance
|Open the Simulation Data Inspector|
|Close the Simulation Data Inspector|
|Clear plotted signals from all subplots in the Simulation Data Inspector|
|Capture contents of Simulation Data Inspector plots|
|Restore Simulation Data Inspector preferences to default settings|
|Save visualization settings to apply to other data|
|Load a view file to visualize data in the Simulation Data Inspector|
|Specify system of units to define signal display units in the Simulation Data Inspector|
|Get current unit system configured in Simulation Data Inspector preferences|
|Specify record mode for logging|
|Check record mode for logging|
Parallel Workflow Support
|Control when to import data from parallel simulations into the Simulation Data Inspector|
|Determine status and mode for Parallel Computing Toolbox support|
|Send run created on parallel workers to the Simulation Data Inspector|
|Clean up worker repositories|
Customize Time Plot Appearance
|Set subplot layout in the Simulation Data Inspector|
|Specify subplot limits for time plots in the Simulation Data Inspector|
|Get t- and y-axis limits for time plot in the Simulation Data Inspector|
|Change signal grouping hierarchy in Inspect pane|
|Determine if data markers are shown in the Simulation Data Inspector|
|Show or hide markers for plotted signals|
|Determine grid configuration for time plots|
|Configure grid lines for time plots in the Simulation Data Inspector|
|Get tick mark position setting for time plots|
|Configure position for tick marks on time plots in the Simulation Data Inspector|
|Get tick mark label setting for time plots|
|Configure tick label visibility for time plot axes|
|Get border display setting for time plots|
|Display or hide border on time plots|
|Configure number of cursors active in Simulation Data Inspector|
|Check number of cursors active in the Simulation Data Inspector|
|Specify active cursor positions in the Simulation Data Inspector|
|Get position for active cursors in the Simulation Data Inspector|
|Configure shading options for cursors in the Simulation Data Inspector|
|Register callback for cursor movements in the Simulation Data Inspector|
|Unregister cursor callback function|
|Compare data in two simulation runs|
|Compare data in two |
|Access results from most recent comparison|
|Access results from most recent comparison|
|Return signal comparison result|
|Save comparison results to an MLDATX file|
Create and Access Runs
|Get the most recently created Simulation Data Inspector run|
|Access data for in-progress or most recently completed simulation|
|Import data into new run in Simulation Data Inspector and return
|Import data into new run in Simulation Data Inspector and return run ID|
|Access data for a Simulation Data Inspector run|
|Copy a Simulation Data Inspector run|
|Import data into existing run in Simulation Data Inspector using run ID|
|Delete a run from the Simulation Data Inspector repository|
|Get number of runs in Simulation Data Inspector repository|
|Use Simulation Data Inspector run index to get run ID|
|Get all Simulation Data Inspector run identifiers|
|Determine whether a run ID is valid|
|Create a single run for all simulation outputs|
Run Object Functions
|Import data into existing run in Simulation Data Inspector using
|Get all signal IDs for signals in |
|Get all signals in |
|Create a Simulink.sdi.DatasetRef object for a run|
|Get signal in |
|Get signal ID for signal at specified index in
|Get signal IDs for signals inside |
|Access signals in a |
|Check whether signal ID corresponds to signal in
Run Management Settings
|Get the Simulation Data Inspector rule for naming runs|
|Specify the Simulation Data Inspector run naming rule|
|Revert the Simulation Data Inspector run naming rule to default|
|Copy line style and color for signals from one run to another|
|Get Simulink.sdi.Signal object for a signal|
|Delete signal in the Simulation Data Inspector|
|Turn logging on or off for a signal|
Signal Object Functions
|Represent multidimensional signal as a single signal with nonscalar sample values|
|Convert data type for signal in Simulation Data Inspector|
|Remove buffering from frames of frame-based signal|
| Convert units of |
|Represent multidimensional signal as group of signals with scalar sample values|
|Export data for signal in Simulation Data Inspector to workspace or file|
| Create tall timetable from |
| Plot |
|Get limit for number of runs to retain in Simulation Data Inspector archive|
|Specify number of runs to retain in Simulation Data Inspector archive|
|Get Simulation Data Inspector run management mode|
|Specify how Simulation Data Inspector manages simulation runs|
|Load a Simulation Data Inspector session or view|
|Clear all data from the Simulation Data Inspector|
|Load logged data into memory|
|Access run signals and metadata|
|Access signal data and metadata|
|Stores logged parameter data and metadata|
|Access run comparison results|
|Access signal comparison results|
|Base class used to define custom variable or file reader for Simulation Data Inspector|
|Specify settings for a snapshot without opening or affecting the Simulation Data Inspector|
|Access simulation data from parallel workers|
|Access data in Simulation Data Inspector repository|
|Datastore for Simulation Data Inspector signals|
|Save and restore signal logging specification|
|Programmatically connect a Dashboard block to a signal|
|Constraint that compares time series data with tolerances using the Simulation Data Inspector|
|Specify comparison options for |
Visualize Simulation Results
- Decide How to Visualize Simulation Data
Choose the right visualization technique for each modeling and simulation task.
- View Data in the Simulation Data Inspector
View logged simulation data alongside imported data and easily build complex visualizations using the Simulation Data Inspector.
- Create Plots Using the Simulation Data Inspector
Create plots to analyze and present your data.
- View Many Signals Together Using Sparklines
View many signals together on compact sparklines visualization.
- View and Replay Map Data
View route of longitude and latitude data on map visualization.
- Visualize Simulation Data on an XY Plot
View and inspect simulation data using the XY visualization and replay controls in the Simulation Data Inspector.
- View Multidimensional Signals Using the Array Plot
View and analyze multidimensional signal data using an array plot in the Simulation Data Inspector.
- Configure the Simulation Data Inspector
Modify preferences in the Simulation Data Inspector to match your requirements.
Import Data into the Simulation Data Inspector
- Microsoft Excel Import, Export, and Logging Format
Understand the Microsoft® Excel® file format used by the Simulation Data Inspector, the Record block, and Simulink® Test™.
- Import Data from a CSV File into the Simulation Data Inspector
Format data in a CSV file and import the file into the Simulation Data Inspector.
- Import Data Using a Custom File Reader
Write a custom file reader to import data from a file saved using a proprietary data or file format.
- Import Workspace Variables Using a Custom Data Reader
Write a custom reader to import workspace data in a proprietary format.
Analyze Simulation Results
- Inspect Simulation Data
View and inspect data from simulations or from imported data.
- Analyze Data from Multiple Simulations
Use the Simulation Data Inspector to view results from multiple simulations side by side.
- Replay Data in the Simulation Data Inspector
Replay data in the Simulation Data Inspector to inspect and analyze simulation behavior.
- Analyze Multidimensional Signal Data
View and analyze multidimensional data in the Simulation Data Inspector and Record block as channels or a single signal with nonscalar sample values and choose whether to remove buffering from frame-based data.
- Compare Simulation Data
Compare signals or simulation runs.
- How the Simulation Data Inspector Compares Data
The Simulation Data Inspector applies specified tolerances and signal alignment techniques when comparing runs.
- Iterate Model Design Using the Simulation Data Inspector
View and manage data in the Simulation Data Inspector throughout an iterative design workflow.
- Modify Signal Properties in the Simulation Data Inspector
Modify signal properties to analyze data and create new signals.
- Inspect and Compare Data Programmatically
Use the Simulation Data Inspector API to plot and compare simulation data.
- Synchronize Cursors in the Simulation Data Inspector with an App Designer App
Use the Simulation Data Inspector programmatic interface to synchronize data cursors in an App Designer app with cursors in the Simulation Data Inspector.