Skip to main content

09 - Analyzing Simulink Models

This chapter explains how to analyze a Simulink model, change parameters to avoid convergence errors, and verify results using PSpice:

  • Analyzing Co-Simulation Results
  • Viewing Analysis Results

Analyzing Co-Simulation Results

You can start a simulation to analyze a Simulink model containing an PSpice block. To do so, choose Simulation – Run from the Simulink model window.

If a convergence error occurs within PSpice during analysis with Simulink, increase the option parameter ITL4 of PSpice up to the value specified in ITL4 Max in Simulation Settings, and retry analysis. However, if PSpice cannot get a result, a convergence error message is displayed.

You can recalculate convergence by changing the analysis options using the Simulation Settings dialog box.

After you change these parameters, click OK. PSpice will continue with the calculation using the changed analysis options.

Normally, if a convergence error occurs during analysis, set the value of ITL4 to a large value, such as 1000. As a result, you can improve convergence without changing analysis accuracy.

Viewing Analysis Results

You can view the Simulink model analyses results using the following two methods:

  • Check the output of PSpice Simulink Co-simulation using the Scope interface node in Simulink project window.
  • View the results obtained in co-simulation by opening the PSpice data file in PSpice. This will display the waveform in the PSpice A/D window.

When you call PSpice from PSpice Simulink Co-simulation to perform an analysis, PSpice creates a data file (*.dat) and an output file (*.out). A PSpice data file stores calculation data within PSpice Simulink Co-simulation, either for the entire circuit or for the part selected as PSpice Simulink Co-simulation output. If you select None as the PSpice Data Collection option in the Simulation Settings window, PSpice will create an empty data file. The output file contains information, such as the analysis log, in text format and is used to verify internal errors that might occur during analysis. The data file and the output files are created in the directory designated for the CIR file.

View the next document: 10 - Options and Data Collection in Simulation Settings

If you have any questions or comments about the OrCAD X platform, click on the link below.

Contact Us