Skip to main content

03 - Setting Up the PSpice - MATLAB Flow for Advanced Waveform Analysis

This chapter explains how to set up the PSpice - MATLAB flow for Advance Waveform Analysis. It also covers details about running the MATLAB engine.

Setting Up the MATLAB Path

Before you use the PSpice - MATLAB flow, you need to:

  1. Register MATLAB as an automation server
  2. Set MATLAB installation path
    Important:
    • The MATLAB path needs to be set only once in the Set MATLAB Path window. Once the path is set, you do not have to set it again.
    • Update the MATLAB path if you have installed a newer supported version of MATLAB or want another MATLAB installation.

Register MATLAB as an automation server

To register MATLAB as an automation server:

  1. Start MATLAB with the Run as administrator option.
    The MATLAB Command Window opens.
  2. Run the command: regmatlabserver

OR

  1. Open the Windows command prompt in the administrator mode.
  2. Go to the installation directory containing the new version you want to use. For example: <MATLAB>\<matlab_version>\bin
  3. Run the command: matlab -regserver
    A minimized MATLAB Command Window appears.
  4. Open the MATLAB Command Window and then close it.
  5. Restart PSpice.

Set MATLAB installation path

To set MATLAB installation path:

  1. Open PSpice.
  2. Choose Tools – MATLAB – Set MATLAB Path.
    The MATLAB path should end at the bin folder, such as <MATLAB_installation>\bin

Running the MATLAB Engine

You need to start the MATLAB engine for a faster first launch of the MATLAB command window. If you have not started the MATLAB engine before exporting the trace data, the first launch of the MATLAB command window is delayed by few seconds. To run the MATLAB engine:

  1. Launch PSpice.
  2. Select Tools – MATLAB – Start MATLAB Engine.

   You need to specify the MATLAB path before you can access other commands in this menu. The Start MATLAB Engine option will be displayed only if you have specified the MATLAB path.

View the next document: 04 - Working with Advanced Waveform Analysis Flows

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

Contact Us