Skip to main content

06 - Introducing PSpice Simulink Co-Simulation

PSpice Simulink Co-Simulation interface is an interface tool that links PSpice to the MATLAB® Simulink® system simulator, provided by The Mathworks.

PSpice is a SPICE-based simulator used for simulating electrical and electronic circuits, and The Mathworks tools are used for system designing. PSpice Simulink Co-Simulation interface integrates these two simulators to provide a simulation flow that can be used to design any kind of system with electronic subsystems.

You should have the following combination of The Mathworks and Cadence OrCAD and Allegro products installed on your system:

  1. The Mathworks products
    • MATLAB R2019b or onwards
    • Simulink
  2. Cadence OrCAD products or Cadence Allegro products
    Install one of the following design entry tools:
    • Capture or Capture CIS
    • Design Entry HDL
    Install the following simulator:
    • PSpice A/D
  3. To be able to use the PSpice - MATLAB Interface, ensure that you have license for one of these products in your license file.
    • PSpice Designer Plus
    • OrCAD X Professional Plus
    • Allegro X PSpice System Designer

Setting Up the PSpice Simulink Co-simulation Solution

You can use one of the following two ways to setup the PSpice Simulink Co-simulation solution:

  • Automatic Setup
  • Manual Setup

Automatic Setup

To ensure that the MATLAB path settings are done automatically, do the following in PSpice:

  1. Ensure that you have set the MATLAB path in PSpice. For details see, Setting Up the MATLAB Path.
  2. Select Tools – MATLAB – Co-simulation to open MATLAB.

Manual Setup

When you want to launch MATLAB directly from the Start menu, instead of launching it from PSpice (Tools – MATLAB – Co-simulation), you need to set the PSpice Simulink Co-simulation solution path manually. To do so:

  1. Set the PATH variable of your system as: <installation_directory>\tools\bin
  2. Set the PSpice Simulink Co-simulation path in the PSpice installation in MATLAB. To do so:
    1. Launch MATLAB.
    2. Under Home tab, select Set Path.
    3. Click the Add Folder button and browse to the following location: <installation_directory>\tools\pspice\pspCosim

View the next document: 07 - Creating a Schematic

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

Contact Us