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?
Copyright © 2020 Cadence Design Systems, Inc. All rights reserved.
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.
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?
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!
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~
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
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
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
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! :)
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...
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.
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.
Hello Roberto,
I was following your instructions and even when I try to simulate the demo files I am getting the same Error:
SLPS ERROR: SLPS module is failed to load (psstub.dll).
Can you help me? I can't figure out the problem.
Best Regards
Miriam
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.
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
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?
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)
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?
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.
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
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
Hello Maria,
Were you able to resolve this problem? I am also facing the same issue.
Thanks,
Nup
Hi,
I am having the following issue with SLPS. When I run the simulation, it shows me the following error,
SLPS licensing error.
Please check:
-SLPS and PSpice License availability
I believe I have the student license until 2021. My capture CIS is running fine and it is not a lite version. So I believe I installed the license file. Could anyone tell me what could be the possible issue? I would really appreciate it.
Thanks.
Raihan
Hi Raihan90,
It seems you are located in US based on your profile, then you would need to contact EMA (your local distributor) for such license questions:
https://www.ema-eda.com/contact-us
Kind regards,
Anders