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.

Tools

expand all

Simulation Data InspectorInspect and compare data and simulation results to validate and iterate model designs

Functions

expand all

Simulink.sdi.viewOpen the Simulation Data Inspector
Simulink.sdi.closeClose the Simulation Data Inspector
Simulink.sdi.snapshotCapture contents of Simulation Data Inspector plots
Simulink.sdi.setSubPlotLayoutSet subplot layout in the Simulation Data Inspector
Simulink.sdi.setTableGroupingChange signal grouping hierarchy in Inspect pane
Simulink.sdi.getMarkersOnDetermine if data markers are shown in the Simulation Data Inspector
Simulink.sdi.setMarkersOnShow or hide markers for plotted signals
Simulink.sdi.getGridOnDetermine if grid is shown on time plots in the Simulation Data Inspector
Simulink.sdi.setGridOnShow or hide grid lines
Simulink.sdi.clearPreferencesClear Simulation Data Inspector preference changes
Simulink.sdi.enablePCTSupportControl how the Simulation Data Inspector works with the Parallel Computing Toolbox
Simulink.sdi.isPCTSupportEnabledDetermine status and mode for Parallel Computing Toolbox support
Simulink.sdi.sendWorkerRunToClientSend run created on parallel workers to the Simulation Data Inspector
Simulink.sdi.cleanupWorkerResourcesClean up worker repositories
Simulink.sdi.compareRunsCompare the data in two simulation runs
Simulink.sdi.compareSignalsCompare data from two signals
Simulink.sdi.getRunGet a Simulink.sdi.Run object to access data
Simulink.sdi.copyRunCopy a Simulation Data Inspector run
Simulink.sdi.deleteRunDelete a run from the Simulation Data Inspector repository
Simulink.sdi.createRunCreate a run in the Simulation Data Inspector
Simulink.sdi.getRunNamingRuleGet the Simulation Data Inspector rule for naming runs
Simulink.sdi.setRunNamingRuleSpecify the Simulation Data Inspector run naming rule
Simulink.sdi.resetRunNamingRuleRevert the Simulation Data Inspector run naming rule to default
Simulink.sdi.getRunCountGet number of runs in Simulation Data Inspector repository
Simulink.sdi.getRunIDByIndexUse Simulation Data Inspector run index to get run ID
Simulink.sdi.getAllRunIDsGet all Simulation Data Inspector run identifiers
Simulink.sdi.isValidRunIDDetermine whether a run ID is valid
Simulink.sdi.copyRunViewSettingsCopy line style and color for signals from one run to another
Simulink.sdi.createRunOrAddToStreamedRunCreate a single run for all simulation outputs
Simulink.sdi.getSignalGet Simulink.sdi.Signal object for a signal
Simulink.sdi.deleteSignalDelete a signal from the Simulation Data Inspector repository
Simulink.sdi.addToRunAdd one or more signals to existing run
Simulink.sdi.markSignalForStreamingTurn logging on or off for a signal
Simulink.sdi.getArchiveRunLimitDetermine configured run limit for Simulation Data Inspector archive
Simulink.sdi.setArchiveRunLimitSpecify a limit for the number of runs stored in the Simulation Data Inspector archive
Simulink.sdi.getAutoArchiveModeDetermine if the Simulation Data Inspector is configured to automatically archive
Simulink.sdi.setAutoArchiveModeSpecify whether the Simulation Data Inspector automatically archives simulation runs
Simulink.sdi.saveSave Simulation Data Inspector session
Simulink.sdi.loadLoad a Simulation Data Inspector session or view
Simulink.sdi.clearClear all data from the Simulation Data Inspector
Simulink.sdi.exportRunExport run data to a Simulink.SimulationData.Dataset object
Simulink.sdi.reportGenerate a Simulation Data Inspector report
loadIntoMemoryLoad logged data into memory

Classes

expand all

Simulink.sdi.RunAccess run signals and metadata
Simulink.sdi.Signal Access signal data and metadata
Simulink.SimulationData.ParameterStores logged parameter data and metadata
Simulink.sdi.DiffRunResultAccess run comparison metadata
Simulink.sdi.DiffSignalResultAccess signal comparison results
Simulink.sdi.CustomSnapshot Specify settings for a snapshot without opening or affecting the Simulation Data Inspector
Simulink.sdi.WorkerRun Access simulation data from parallel workers
Simulink.SimulationData.DatasetCreate Simulink.SimulationData.Dataset object
Simulink.sdi.DatasetRefAccess data in Simulation Data Inspector repository
matlab.io.datastore.sdidatastore Datastore for Simulation Data Inspector signals
Simulink.HMI.InstrumentedSignalsAccess logged signals in model
Simulink.HMI.SignalSpecificationInformation for logging a signal
Simulink.sdi.constraints.MatchesSignalConstraint that compares time series data with tolerances using the Simulation Data Inspector
Simulink.sdi.constraints.MatchesSignalOptionsSpecify comparison options for Simulink.sdi.MatchesSignal constraint

Topics

Decide How to Visualize Simulation Data

Explains how to display your output directories.

View Data with the Simulation Data Inspector

Use the Simulation Data Inspector to view data at all stages of your design process.

Inspect Simulation Data

View and inspect data from simulations or from imported data.

Modify Signal Properties in the Simulation Data Inspector

Modify signal properties to analyze data and create new signals

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.

Save and Share Simulation Data Inspector Data and Views

Share exported data, Simulation Data Inspector sessions and views, and plot images and figures.

Create Plots Using the Simulation Data Inspector

Create plots to analyze and present your data.

Organize Your Simulation Data Inspector Workspace

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

Access Data in a MATLAB Function During Simulation

Stream signal data to a MATLAB® callback function during simulation for processing and visualization.

Inspect and Compare Data Programmatically

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

Keyboard Shortcuts for the Simulation Data Inspector

Use the keyboard to control the Simulation Data Inspector.

Featured Examples