Hello, Thank you for viewing my post. I met a problem when first time use the Spectre/RF Matlab toolbox.
I use MMSIM6.2 and Matlab2010b(32bit), run on 32bit Linux. Where&How should I set LD_LIBRARY_PATH and MATLABPATH?I try to set them in ~/.cshrc file. The codes are appended to the existing .cshrc file as following: setenv LD_LIBRARY_PATH `cds_root spectre`/tools/dfII/lib:`cds_root spectre`/tools/lib/setenv MATLABPATH `cds_root spectre`/tools/spectre/matlabThen I lauch matlab from home directory and type "getenv LD_LIBRARY_PATH" in matlab window to check the path. It looks ok.The spectre paths are appended to matlab's own paths. Then I tried the matlab code:
it reports ERROR as following:
??? Invalid MEX-file '/usr/local/apps/cadence/spectre/current/tools/spectre/matlab/cds_innersrr.mexglx':
/usr/local/apps/cadence/spectre/current/tools/spectre/matlab/cds_innersrr.mexglx: undefined symbol:
Error in ==> cds_srr at 16
sig = cds_innersrr(dirname);
I can only find one MEX file in the
package for 32bit, that is cds_innersrr.mexglx, all the others are .m
"cds_srr" function use "cds_innersrr.mexglx" file, but looks like something wrong with it.
I have no idea how to open .mexglx file and how to check the problem. I appreciate your
help, Thank you!
Thank you very much, Andrew! It is very helpful! Otherwise, I might waste lots of time trying to figure it out.
BTW: Please ignore the email sent by me on "The Designer's Guide Community".
i'm working with MMSIM 7.2 and Matlab2010a (7.10.0) and Virtuoso 6.1.4.
The toolbox works fine if i'm using in a Matlab script (inside ADE XL) without any cds_srr statements, for example:
axlResult = 0;
or if i'm plotting some stuff (like the example in the documentation). But if i want to load a signal with the cds_srr function i got an error:
Vi = cds_srr(psf, 'dc-dc', '/Vi');??? Undefined function or method 'cds_innersrr' for input arguments of type 'char'.Error in ==> cds_srr at 20 sig = cds_innersrr(dirname, dataset, signame, verbose);
I cant find this function, there is only a mex file in the folder tools/spectre/matlab (cds_innersrr.mexglx)
What can i do? Did i forget something?
Thanks for your help!
I suspect that you have run into the issue described in the following solution (if it does not resolve your problem, please file a Service Request with Cadence Customer Support support.cadence.com ):
Make sure your <path>/tools/lib/64bit
is at the beginning of the LD_LIBRARY_PATH
I'd also suggest that you try running matlab standalone and then calling cds_srr() interactively, and ensuring that works, before you start trying to use it in an ADE XL measurement. Did you set $LD_LIBRARY_PATH like I (and Tawna) suggested earlier?