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.
Requirements for PSpice Simulink Co-Simulation Interface
You should have the following combination of The Mathworks and Cadence OrCAD and Allegro products installed on your system:
- The Mathworks products
- MATLAB R2019b or onwards
- Simulink
- Cadence OrCAD products or Cadence Allegro products
Install one of the following design entry tools:- Capture or Capture CIS
- Design Entry HDL
- PSpice A/D
- 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:
- Ensure that you have set the MATLAB path in PSpice. For details see, Setting Up the MATLAB Path.
- 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:
- Set the PATH variable of your system as: <installation_directory>\tools\bin
- Set the PSpice Simulink Co-simulation path in the PSpice installation in MATLAB. To do so:
- Launch MATLAB.
- Under Home tab, select Set Path.
- 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