Documentation

Compare Signal Data from Multiple Simulations

In the Simulation Data Inspector, you can use the Compare tab to compare two signals or all signal data from two different simulation runs. This example is a continuation of Inspect Signal Data.

Compare Two Signals

  1. In the Runs pane, right-click a baseline signal and select Compare Signals > Set as Baseline.

  2. Right-click another signal that you want to compare to that baseline and select Compare Signals > Set as Compare To.

  3. In the Compare tab, click Compare.

    Here, the alpha, rad and Stick signals are compared from Run 1. In this example, the comparison fails because the signals do not match within the default relative and absolute tolerance.

Compare Two Runs

  1. Click the Compare tab.

  2. Select the Runs option button.

  3. From the Baseline and Compare To lists, select two different runs. These runs correspond to runs located in the Runs pane.

  4. Click Compare. The Comparisons pane lists all signals from each run with a result. In this example, the comparison results of the aligned signals do not match because the signal differences are not within the absolute tolerance or relative tolerance.

      Note:   The Simulation Data Inspector only compares signals from Baseline that are aligned with a signal from Compare To. If a signal from Baseline does not align with a signal from Compare To, then the signal is listed with a warning . For more information on signal alignment, see How the Simulation Data Inspector Aligns Signals.

  5. To plot a comparison, in the Plot column select the option button for a signal, in the example it is q, rad/sec. The top plot shows the q, rad/sec signals from the Baseline and Compare To runs. The bottom plot shows the difference between the signals and the tolerance. For information on manipulating the plot, see Customize the Simulation Data Inspector Interface.

      Note:   Even though relative and absolute tolerances can be specified, the only tolerance that shows in the Difference and Tolerance plot is the more lenient tolerance. For more information on tolerances, see How the Simulation Data Inspector Applies Tolerances.

  6. To modify the relative tolerance or absolute tolerance, double-click the Abs Tol or Rel Tol field for a signal and type in a value. In this example, the signal comparison of q, rad/sec passes using an absolute tolerance of 1.5.

  7. To create a report of the comparison results, see Create Simulation Data Inspector Report.

Related Examples

Was this topic helpful?