8 posts / 0 new
Last post
#1 Sep 10, 2019
sd18voice
sd18voice's picture
Offline
Last seen: 3 days 4 hours ago
Joined: 2019-09-10 03:09

SLPS Error

I am wondering whether anybody has a suggestion on the following issue:

I am trying to simulate a simple RC filter in pspice 17.2 (Allegro Design entry CIS) and i am cosimulating the same using SLPS in MATLAB.

I am using Cadence Release 17.2-2016, 64 bit Matlab R2019a on 64 bit Win10.

When I try to run an SLPS demo or a simulation I've put together, I always get the same error message:

Error while obtaining sizes from MEX S-function 'slpsblk' in 'RC_SLPS/SLPS/S'.

Caused by:

  • SLPS ERROR: SLPS module is failed to load (psstub.dll). 

I checked that the file exists within the "C:\Cadence\SPB_17.2\tools\pspice\slps" folder, I have installed SLPS correctly from Matlab and I checked that also have added to the Matlab PATH the following:

  • C:\Cadence\SPB_17.2\tools\pspice\slps
  • C:\Cadence\SPB_17.2\tools\bin
  • C:\Cadence\SPB_17.2\tools\pspice\capture_samples\SLPSdemos

May I know how can I solve this problem?

 Is there any new method to simulate pspice netlist in simulink?

 

with regards,

Siva A K

Tue, 2019-09-10 10:38
oldmouldy
Offline
Last seen: 1 day 21 hours ago
Joined: 2016-07-06 04:23

See this post: https://www.pspice.com/slps-error The SLPS Block is no longer supported, you need to follow the co-simulation examples and use the PSpice Block in MATLAB / Simulink now.

Wed, 2019-09-11 00:11
sd18voice
sd18voice's picture
Offline
Last seen: 3 days 4 hours ago
Joined: 2019-09-10 03:09

 

As per your recommendation I have used the pspice block and an error message has arrived.

I was not able to configure the pspice block. When I run the simulation, I received the error message as:

Error while obtaining sizes from MEX S-function 'PSpice' in 'RC_pspice/PSpiceBlock'.

Caused by:

  • Invalid MEX-file 'C:\CAD_APPS\Cadence\SPB_17.2\tools\pspice\pspCosim\PSpice.mexw64': Missing dependent shared libraries: 'orPSP_ENG64.dll' required by 'C:\CAD_APPS\Cadence\SPB_17.2\tools\pspice\pspCosim\PSpice.mexw64' 'orCommonTcl64.dll' required by 'C:\CAD_APPS\Cadence\SPB_17.2\tools\pspice\pspCosim\PSpice.mexw64' 'icudt61.dll' required by 'C:\Program Files\MATLAB\R2019a/bin/win64\icuuc61.dll->C:\Program Files\MATLAB\R2019a/bin/win64\icuin61.dll->C:\Program Files\MATLAB\R2019a/bin/win64\libmwi18n.dll->C:\Program Files\MATLAB\R2019a/bin/win64\libmx.dll->C:\CAD_APPS\Cadence\SPB_17.2\tools\pspice\pspCosim\PSpice.mexw64' 'SBaseMD_sh64.dll' required by 'C:\CAD_APPS\Cadence\SPB_17.2\tools\pspice\pspCosim\PSpice.mexw64' 'SMIMD_sh64.dll' required by 'C:\CAD_APPS\Cadence\SPB_17.2\tools\pspice\pspCosim\PSpice.mexw64' 
Wed, 2019-09-11 03:24
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 days 1 hour ago
Joined: 2016-05-24 03:10

Hello,

In MATLAB you have to add next paths:

  • C:\Cadence\SPB_17.2\tools\pspice\pspCosim
  • C:\Cadence\SPB_17.2\tools\bin

The demos are in this directory:

  • C:\Cadence\SPB_17.2\tools\pspice\capture_samples\CoSimulationDemos

In PSpice, unter tools --> MATLAB --> Set Matlab Path

Then, when you want to co-simulate, you have to click on Tools --> MATLAB --> Co-Simulation

Regards,

Roberto

Wed, 2019-09-11 03:38
oldmouldy
Offline
Last seen: 1 day 21 hours ago
Joined: 2016-07-06 04:23

If you want to run from MATLAB, you will need to follow the configuration instructions in the psp_matlab_ug manual, available from the Cadence Support site, support.cadence.com. The machine PATH environment variable needs the <installation_folder>\tools\bin value added and MATLAB needs <installation_folder>\tools\pspice\pspCosim added to its PATH settings. <installation_folder> is the root of the SPB 17.2 installation, usually C:\Cadence\SPB_17.2

Wed, 2019-09-11 03:39
oldmouldy
Offline
Last seen: 1 day 21 hours ago
Joined: 2016-07-06 04:23

If you want to run from MATLAB, you will need to follow the configuration instructions in the psp_matlab_ug manual, available from the Cadence Support site, support.cadence.com. The machine PATH environment variable needs the <installation_folder>\tools\bin value added and MATLAB needs <installation_folder>\tools\pspice\pspCosim added to its PATH settings. <installation_folder> is the root of the SPB 17.2 installation, usually C:\Cadence\SPB_17.2

Wed, 2019-09-11 05:22
sd18voice
sd18voice's picture
Offline
Last seen: 3 days 4 hours ago
Joined: 2019-09-10 03:09

Hi Roberto,

I have gone through what you have suggested and run the RC circuit in the demo example. Now a new error has occured. I was able to open the pspice block and configure to the RC circuit.

An error occurred while running the simulation and the simulation was terminated
Caused by:
Error reported by S-function 'PSpice' in 'RCMDL_SLPS/PSpiceBlock':
ERROR(ORPSIM-2603): License not found or could not be checked out. 

 

I would like to know wether the CADENCE ALLEGRO has cosimulation license. May I know how can i check the license.

 

With regards,

 Siva A K

Wed, 2019-09-11 05:37 (Reply to #7)
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 days 1 hour ago
Joined: 2016-05-24 03:10

Hello,

It sounds great. It means that everything works properly, but you do not have license for this feature. All you need is license for PSpice Systems Option. You should buy it through your channel partner.

Regards

Download PSpice Lite and try it for free! Get PSpice Lite
Cadence