The Simulation Data Inspector software provides the capability to inspect and compare time series data at several stages of your workflow:
Model design: Inspect and compare simulation data after making changes to the model diagram or its configuration
Testing your model: Compare simulation data with different input data
Code generation: Compare simulation data and generated code output of your model
You can compare variable-step data, fixed-step solver data from Simulink® and Simulink Coder™, and fixed-step output with external data. How the Simulation Data Inspector Compares Time Series Data describes how aligned signal data are compared. How the Simulation Data Inspector Aligns Signals describes how signals are aligned between compared runs.
A typical workflow for inspecting and comparing signal data is:
Set up your model to send data to the Simulation Data Inspector, as in Stream Data to the Simulation Data Inspector or Record Logged Simulation Data. If you are sending logged data, configure your model to log signals as in Export Signal Data Using Signal Logging.
Open the Simulation Data Inspector, as described in Open the Simulation Data Inspector.
Simulate your model or import signal data from the base workspace or a MAT-file, as described in and Import Signal Data.
Configure the runs appearance and specify how you want to plot the data, as described in Customize the Simulation Data Inspector Interface.
Inspect signals using data cursors to quickly determine if the run satisfies requirements, as described in Inspect Signal Data.
If the run is unsatisfactory, delete it. Repeat steps 3 and 4 to collect the desired simulation runs for comparing data.
Compare two signals or all of the signal data from multiple runs, as described in Compare Signal Data from Multiple Simulations.
Optionally assign tolerances to signals and graphically inspect the applied tolerances.
Determine which signals have discrepancies within the specified tolerances. Plot and analyze the discrepancies of any two signals.
Save the signal data and comparison results, as described in .
The Simulation Data Inspector software provides a command-line interface. For more information, see Inspect and Compare Signal Data Programmatically.