Back to Forums
22 posts / 0 new
Last post
#1 Dec 21, 2016
sh park
Offline
Last seen: 2 years 9 months ago
Joined: 2016-05-25 04:13

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

Hi,

I use PSpice 17.2 with MATLAB R2016b with simulink.

When I tried to simulate mosckt.mdl in C:\Cadence\SPB_17.2\tools\pspice\capture_samples\SLPSdemos\Tutor

Error occured "SLPS ERROR: SLPS module is failed to load (psstub.dll)"

I added set path C:\Cadence\SPB_17.2\tools\pspice\slps

Can you answer me?

Wed, 2016-12-21 03:22
alok
Offline
Last seen: 5 months 1 day ago
Joined: 2016-05-10 23:49

Please check if you have <INSTALLDIR>\toolls\bin folde i.e. "c:\Cadence\SPB_17.2\tools\bin" in path variable of your syetem.  This should resolve this issue.

Wed, 2016-12-21 19:07
sh park
Offline
Last seen: 2 years 9 months ago
Joined: 2016-05-25 04:13

Thank you alok.

Now I added c:\Cadence\SPB_17.2\tools\bin as you said. Then Plot windows showed a graph, but another pop-up message appeared.

-------------------------------------------------------------------------------------------------------------

ERROR(PSPMI-31): Catalog file orPSpMatlabAddTrace.xml does not exist.

This file should be there in either the <cdsroot>/share/cdssetup/smi/orpsim or in the CDS_SITE

-------------------------------------------------------------------------------------------------------------

So I added c:\Cadence\SPB_17.2\share\cdssetup\smi\orpsim

and it works well.

 

By the way, I use SPB16.6 also. my system variable set is %CDSROOT% as c:\cadence\spb_16.6

so I tried to changed %CDSROOT% as c:\cadence\spb_17.2 but it doesn't fix any of two error above.

only it works with adding full path.

Do you know why?

Mon, 2017-01-09 04:34
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2016-05-24 03:10

Hello,

Could you tell me how do you change the value of CDSROOT? Do you use the Cadence Switch Release or do you use a batch file?

My recommendation would be, that you use a batch file (if possible), as it works stable and without any problem. 

Let me know. 

Have a nice day!

Thu, 2017-01-12 19:51 (Reply to #4)
sh park
Offline
Last seen: 2 years 9 months ago
Joined: 2016-05-25 04:13

Hi,

 

I usually use Control Panel > System > Environment variable to change CDSROOT.

I don't know about that BATCH FILE you said.

Can you please give me some example?

 

Anyway, my key point is that I want to use both 16.6 and 17.2 without changing any config every time.

The problem is that SPB17.2 doesn't refer CDSROOT but only SLPS does now.

 

Thank you~

Thu, 2017-01-12 08:18
P-Dizzle
Offline
Last seen: 3 years 4 months ago
Joined: 2017-01-12 08:05

Hello together,

I am experiencing the same problems as sh park in the beginning.
I added c:\Cadence\SPB_17.2\tools\bin to my path variable using this instruction: http://www.computerhope.com/issues/ch000549.htm
but I'm still receiving the same "SLPS ERROR: SLPS module is failed to load (psstub.dll)". Did I add this path in the right way or did I get something completely wrong?

I also already tried adding the c:\Cadence\SPB_17.2\share\cdssetup\smi\orpsim, but this didn't help either.

I am using MATLAB R2016b (student version) and PSpice 17.2-2016 S009 on Windows 10 64-bit.

 

Thank you very much for your help.

With best regards
Patrick

Thu, 2017-01-12 09:18
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2016-05-24 03:10

Hello Patrick,

You have to add such directory in the MATLAB Path, as it is supposed that such directory is already set in the Windows path. 

So in the MATLAB Path (https://es.mathworks.com/help/matlab/matlab_env/add-remove-or-reorder-fo... ) you have to add these two paths:

C:\Cadence\SPB_17.2\tools\bin

C:\Cadence\SPB_17.2\tools\pspice\slps

Then in the MATLAB Command Window write down slpslib. A window with the SLPS block should pop up.

Then, search in MATLAB environment for the directory C:\Cadence\SPB_17.2\tools\pspice\capture_samples\SLPSdemos 

and open a Demo. When it opens, make double click on the SLPS block, click on open project (so that the project is also in OrCAD Capture) and then try to simulate (you need license for PSpice and for SLPS).

I hope it works. Let me know

Regards

Thu, 2017-01-12 09:32 (Reply to #7)
P-Dizzle
Offline
Last seen: 3 years 4 months ago
Joined: 2017-01-12 08:05

Hello Robert,

thank you very much for your fast reply!
I already added the paths as described but when I open the SLPS block of a demo and press "open project", the CMD.exe-window opens and I get the message: 'The command "capture.exe" is either misspelled or could not be found.' (I translated it from German, so the actual phrasing might be wrong).

So I guess the connection of Capture to Simulink is still somehow wrong? If I simulate without opening the project in Capture, I still get the same error message as mentioned in the first post.

If I browse to the .opj file I can open it using OrCAD Capture without a problem, so I would say the installation of OrCAD Capture itself is working.

I have a full version of the "Cadence PCB and IC Package Design Technologies, Release 17.2 - 2016". It is licenzed using the green USB dongle. As I am a student using the software for my thesis, I got acess to it for one year.

 

Thank you very much.

Patrick

Thu, 2017-01-12 10:54 (Reply to #8)
P-Dizzle
Offline
Last seen: 3 years 4 months ago
Joined: 2017-01-12 08:05

Alright, I just found the problem... misspelled the directory added to to path variable of my system...

Thanks a lot anyways and sorry for bothering! :)

Fri, 2017-01-27 12:40 (Reply to #9)
tolle
Offline
Last seen: 3 years 5 months ago
Joined: 2017-01-27 12:28

I have tried each of these steps but when I open the slps block and click on open project matlab gives me the following error:

 

'ConceptHDL.exe' is not recognized as an internal or external command, 
operable program or batch file. 

 

If I try to run the simulink model I still get 

Error while obtaining sizes from MEX S-function 'slpsblk' in 'DC_MOTOR_SLPS/PSpice model/SLPS/S'.
Caused by:

SLPS ERROR: SLPS module is failed to load (psstub.dll).
Component:Simulink | Category:Blockerror

I have added each of the extra paths listed in this thread but the demos don't work...  I am using the latest matlab 2016b and the latest cadance SPB_17.2

Help...

Mon, 2017-01-30 03:23 (Reply to #10)
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2016-05-24 03:10

Hi Tolle,

I suppose you are woking with HDL and not with Capture, am I right? Which examples are you trying to open? I mean, from which directory.

 

Fri, 2017-02-24 10:51 (Reply to #11)
tolle
Offline
Last seen: 3 years 5 months ago
Joined: 2017-01-27 12:28

Well I have tried all of them-- none work.  I added the paths you outlined and I am further along.   Currently I was trying to use 

NLLOAD_SLPS

from matlabs: slpslib 

I noticed that the latest version of matlab appears to not have the SLPS input and output netlist names listed when you open the example in matlab.  

I fiugred out which to hook up for that example after some trial and error an then when I run the sim from MATLAB it simply crashs matlab -- 

I am using 2016b --- 2016a won't install slps it complains about not finding fprintf....

I am not trying HDL just yet...  Mostly capture -- we would like to teach pspice circuits  hooked to controls models.  Like the DC MOTOR Device SLPS example.

Wed, 2017-06-21 09:19 (Reply to #12)
Miriam1910
Offline
Last seen: 2 years 11 months ago
Joined: 2017-06-19 03:32

Hello Roberto,

I was following your instructions and even when I try to simulate the demo files I am getting the same Error:

Error while obtaining sizes from MEX S-function 'slpsblk' in 'BJT_AMP_SLPS/SLPS/S'.
 
 
Caused by:

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

Can you help me? I can't figure out the problem.

 

Best Regards

Miriam

Thu, 2017-01-12 10:49
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2016-05-24 03:10

Hello Patrick,

The information clarifies a lot. Please check if you have this directories in the variable PATH in the Environment Variables (Control Panel --> System Properties --> Advanced System Properties --> Environment variables):

C:\Cadence\SPB_17.2\tools\pcb\bin;

C:\Cadence\SPB_17.2\tools\bin;

C:\Cadence\SPB_17.2\tools\libutil\bin;

C:\Cadence\SPB_17.2\tools\fet\bin;

C:\Cadence\SPB_17.2\tools\specctra\bin;

C:\Cadence\SPB_17.2\tools\pspice;

C:\Cadence\SPB_17.2\tools\capture;

C:\Cadence\SPB_17.2\openaccess\bin\win32\opt

Consider that I installed the software in C:\. If you are using another directory, consider that one. 

On the other hand, when you add such directories in the PATH Variable, be careful, as there must not be any space between them:

C:\Cadence\SPB_17.2\tools\pcb\bin;C:\Cadence\SPB_17.2\tools\bin;C:\Cadence\SPB_17.2\tools\libutil\bin;C:\Cadence\SPB_17.2\tools\fet\bin;C:\Cadence\SPB_17.2\tools\specctra\bin;C:\Cadence\SPB_17.2\tools\pspice;C:\Cadence\SPB_17.2\tools\capture;C:\Cadence\SPB_17.2\openaccess\bin\win32\opt

Let me know if it works.

Thu, 2017-01-12 10:57 (Reply to #14)
P-Dizzle
Offline
Last seen: 3 years 4 months ago
Joined: 2017-01-12 08:05

Hi Roberto,

as I just wrote above, I could fix the problem. I misspelled the added directory in the environment variables.

Thank you for your detailed help and sorry for taking your time!

Regards
Patrick

Fri, 2017-02-24 14:50 (Reply to #15)
tolle
Offline
Last seen: 3 years 5 months ago
Joined: 2017-01-27 12:28

So I think this might be the root issue:

 

SLPS licensing error.
Please check:
-SLPS and PSpice License availability.

 

If you exicute the command:

sim('RCMDL_SLPS') 

in matlabe the above error is obtained in the command widow of Matlab...  Ideas?

 

Fri, 2017-02-24 14:51 (Reply to #16)
tolle
Offline
Last seen: 3 years 5 months ago
Joined: 2017-01-27 12:28

Lic. avalible:

Feature usage info:

Users of OrCAD_Capture_CIS_option:  (Total of 8 licenses issued;  Total of 0 licenses in use)

Users of OrCAD_PCB_Designer_PSpice:  (Total of 8 licenses issued;  Total of 0 licenses in use)

Users of OrCAD_PCB_Editor:  (Total of 8 licenses issued;  Total of 0 licenses in use)

Users of OrCAD_PCB_Router:  (Total of 8 licenses issued;  Total of 0 licenses in use)

Users of OrCAD_PSpice_Systems_Sim:  (Total of 8 licenses issued;  Total of 0 licenses in use)

Users of OrCAD_Signal_Explorer:  (Total of 8 licenses issued;  Total of 0 licenses in use)

Mon, 2017-03-06 03:20 (Reply to #17)
RobertoGb
RobertoGb's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2016-05-24 03:10

Hi,

It is quite strange that you are getting such message. Any way, could you tell me please if you can simulate a design in PSpice? 

Tue, 2017-01-31 12:22
JaseSerre
Offline
Last seen: 3 years 3 months ago
Joined: 2017-01-31 12:16

Hi...i am a new user here. I have one question in my mind. I want to know how do you change the value of CDSROOT? Do you use the Cadence Switch Release or do you use a batch file?I think you should use a batch file, as it works stable and without any problem.

Tue, 2017-01-31 12:30
gfruizCDN
Offline
Last seen: 2 years 2 months ago
Joined: 2016-03-04 10:58

It is always recommended to use Cadence Switch Release to change the CDSROOT variable. This enusres that that all of the registry references are updated correctly.

Regards,

Gil

Thu, 2018-05-03 08:55
momo_1902
Offline
Last seen: 2 years 3 months ago
Joined: 2018-05-03 07:43

Hi Roberto,

I have been getting the following error when trying to run the demo files and my own:

"Error while obtaining sizes from MEX S-function 'slpsblk' in 'mosckt/SLPS/S'.
Caused by:

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

I have added

C:\Cadence\SPB_17.2\tools\pspice\capture_samples\SLPSdemos 

C:\Cadence\SPB_17.2\tools\pspice\slps

C:\Cadence\SPB_17.2\tools\bin

C:\Work (my working folder)

To the matlab search path. 

Do have any other sugestions?

Thanks,

Maria

Fri, 2020-05-08 04:25 (Reply to #21)
Nup
Offline
Last seen: 3 months 1 week ago
Joined: 2020-05-08 04:20

Hello Maria, 

Were you able to resolve this problem? I am also facing the same issue. 

Thanks, 

Nup

Download PSpice and try it for free! Download Free Trial
Cadence