Back to Forums
2 posts / 0 new
Last post
#1 Nov 7, 2020
stos
Offline
Last seen: 3 weeks 2 hours ago
Joined: 2020-11-06 16:40

Error while obtaining sizes from MEX S-function 'PSpice' in

Location

Germany
DE

Hello,

I get the following error: 

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

Caused by:

  • Invalid MEX-file 'C:\Program Files (x86)\cadence\tools\pspice\pspCosim\PSpice.mexw64': The specified module could not be found. 

Steps done:

I added the paths in both the user and the systems path variable:

This is my 'system variables': Path: "C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\MATLAB\R2020a\runtime\win64;C:\Program Files\MATLAB\R2020a\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\cadence\tools\bin;C:\Program Files (x86)\cadence\tools\pspice;C:\Program Files (x86)\cadence\tools\libutil\bin;C:\Program Files (x86)\cadence\tools\fet\bin;C:\Program Files (x86)\cadence\tools\specctra\bin;C:\Program Files (x86)\cadence\openaccess\bin\win32\opt;C:\Program Files (x86)\cadence\tools\capture;C:\Program Files (x86)\cadence\tools\pcb\bin; "

This is my 'user variables': Path: "C:\Program Files (x86)\GNU Arm Embedded Toolchain\9 2020-q2-update\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;%USERPROFILE%\.dotnet\tools;C:\Program Files (x86)\cadence\tools\bin;C:\Program Files (x86)\cadence\tools\pspice;C:\Program Files (x86)\cadence\tools\libutil\bin;C:\Program Files (x86)\cadence\tools\fet\bin;C:\Program Files (x86)\cadence\tools\specctra\bin;C:\Program Files (x86)\cadence\openaccess\bin\w32\opt;"

I added the following paths to the matlab paths:  

  • C:\Program Files (x86)\cadence\tools\bin
  • C:\Program Files (x86)\cadence\tools\pspice\pspCosim

Thank you in advance.

btw. I'm using the student version 17.4-2019-P001

Mon, 2020-11-09 14:08
stos
Offline
Last seen: 3 weeks 2 hours ago
Joined: 2020-11-06 16:40

It appears that the s function cannot be found:

"The s function source file cannot be found."

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