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 Tool Aligns Signals describes how signals are aligned between runs. How the Simulation Data Inspector Tool Compares Time Series Data describes how aligned signal data are compared.
A typical workflow for inspecting and comparing signal data is:
Set up your model to log signal data, as in Export Signal Data Using Signal Logging.
Open the Simulation Data Inspector tool, as described in Open the Simulation Data Inspector Tool.
Configure the Signal Browser table and specify how you want to graph the data, as described in Customize the Simulation Data Inspector Interface.
Inspect signals 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.
Optionally assign tolerances to signals and graphically inspect the applied tolerances, as described in Customize the Simulation Data Inspector Interface.
Compare individual signals in the same run, or from different runs, as described in Compare Signal Data.
Compare all of the imported signal data from multiple runs, as described in Compare All Logged Signal Data From Multiple Simulations.
Determine which signals have discrepancies within the specified tolerances. Plot and analyze the discrepancies of any two signals.
Save the imported signal data and comparison results, as described in Export Results in the Simulation Data Inspector Tool.
The Simulation Data Inspector software provides a command-line interface. For more information, see Record and Inspect Signal Data Programmatically