Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Inspect and Analyze Simulation Results

Inspect and compare simulation results to validate model designs using the Simulation Data Inspector

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 in Your Workflow.

Functions

find Access and display values of simulation results
get Access and display values of simulation results
who List names of top-level data logging objects in Simulink ModelDataLogs data log
Simulink.sdi.view Open the Simulation Data Inspector
Simulink.sdi.close Close the Simulation Data Inspector
Simulink.sdi.setSubPlotLayout Set layout of subplots
Simulink.sdi.clearPreferences Clear preference changes in the Simulation Data Inspector
Simulink.sdi.compareRuns Compare data between two simulation runs
Simulink.sdi.compareSignals Compare data from two signals
Simulink.sdi.getRun Get a Simulink.sdi.Run object containing simulation output data
Simulink.sdi.copyRun Create a copy of a run
Simulink.sdi.deleteRun Delete a run from the Simulation Data Inspector
Simulink.sdi.createRun Create a run in the Simulation Data Inspector
Simulink.sdi.getRunNamingRule Get the run naming rule for Simulation Data Inspector runs
Simulink.sdi.setRunNamingRule Specify a run naming rule
Simulink.sdi.resetRunNamingRule Reset the Simulation Data Inspector run naming rule to the default
Simulink.sdi.setRunOverwrite Enable overwrite run mode for a Simulation Data Inspector run
Simulink.sdi.getRunCount Get the number of runs in the Simulation Data Inspector
Simulink.sdi.getRunIDByIndex Get the run ID corresponding to the specified run index
Simulink.sdi.getAllRunIDs Get all run identifiers within the Simulation Data Inspector
Simulink.sdi.isValidRunID Determine if run ID is valid
Simulink.sdi.setTableGrouping Change grouping hierarchy of signals in Inspect pane
Simulink.sdi.copyRunViewSettings Copy signal line style and color specifications from one run to another run
Simulink.sdi.createRunOrAddToStreamedRun Create a single run for all simulation outputs
Simulink.sdi.getSignal Get a Simulink.sdi.Signal object for the specified signal in the Simulation Data Inspector
Simulink.sdi.deleteSignal Delete a signal from the Simulation Data Inspector
Simulink.sdi.addToRun Add data to existing run
Simulink.sdi.markSignalForStreaming Turn streaming on or off for a signal
Simulink.sdi.save Save current Simulation Data Inspector session
Simulink.sdi.load Load a saved Simulation Data Inspector session or view
Simulink.sdi.clear Clear all data from the Simulation Data Inspector
Simulink.sdi.exportRun Create a Simulink.SimulationData.Dataset object of the data in the specified run
Simulink.sdi.report Generate a Simulation Data Inspector report
Simulink.sdi.importDataFromWorkers Import data from Parallel Computing Toolbox workers

Classes

Simulink.sdi.DiffRunResult Results from comparing two simulation runs
Simulink.sdi.DiffSignalResult Results from comparing two signals
Simulink.sdi.Run Manages signal data and metadata of simulation run
Simulink.sdi.Signal Manages signal time series data and metadata
Simulink.SimulationData.Dataset Create Simulink.SimulationData.Dataset object
Simulink.HMI.InstrumentedSignals Access streamed signals in model
Simulink.HMI.SignalSpecification Information required to stream a single signal

Examples and How To

Simulation Data Inspector in Your Workflow

Use Simulation Data Inspector to inspect and compare simulation data throughout the multiple stages of model development.

Open the Simulation Data Inspector

Get started with the Simulation Data Inspector.

Log Signals to the Simulation Data Inspector

Prepare your model to log data to the Simulation Data Inspector.

Record Data with the Simulation Data Inspector

Configure your model and the Simulation Data Inspector to record logged data from a simulation run.

Import Data

Import data from the base workspace or a MAT-file.

Share Simulation Data Inspector Data and Views

Share exported simulation runs, Simulation Data Inspector views, and plot images.

Run Management and Configuration

Configure how simulation runs are loaded and created.

Inspect Simulation Data

View and inspect simulation data from simulations or from imported data.

Compare Simulation Data

Compare signals or simulation runs.

Create A Simulation Data Inspector Report

Create a report of inspected or compared simulation data.

Customize the Simulation Data Inspector Interface

Change the appearance of the interface and the signals you want to analyze.

Inspect and Compare Data Programmatically

Use the API to plot and compare simulation data in the Simulation Data Inspector.

Convert Logged Data to Dataset Format

To convert a workspace variable that contains data that was logged in a format other than Dataset format to use Dataset format, use a Simulink.SimulationData.Dataset constructor.

Concepts

Decide How to Visualize Simulation Data

Explains how to display your output directories.

How the Simulation Data Inspector Compares Data

The Simulation Data Inspector applies specified tolerances and signal alignment techniques when comparing timeseries data.

Keyboard Shortcuts for the Simulation Data Inspector

Use the keyboard to control the Simulation Data Inspector.

Limitations of the Simulation Data Inspector

Choose the best scenarios to use the Simulation Data Inspector.

Dataset Conversion for Logged Data

To convert a workspace variable that contains data that was logged in a format other than Dataset format to use Dataset format, use a Simulink.SimulationData.Dataset constructor.

Was this topic helpful?