usnistgov / REFPROP-wrappers

Wrappers around NIST REFPROP for languages such as Python, MATLAB, etc.
195 stars 127 forks source link

Incorrect use of calllib #613

Closed ZZM-iet closed 3 months ago

ZZM-iet commented 3 months ago

Using the 'legacy method' to call 'refpropm('T','P',101.325,'Q',0,'WATER')' in MATLAB,Display it:

Error refprop (line 295) [nc,~,~,~,ierr,errTxt] = calllib(libName,'SETUPdll',numComponents,path,hmix,href,0,herr,10000,255,3,255);

The array must be a numerical or logical value, or a pointer to a value

ianhbell commented 3 months ago

We no longer support the refpropm interface. Please switch to the Python-based one.

ZZM-iet commented 3 months ago

When using the Python-based method, an error occurs in the following steps :

"MOLSI = RP.GETENUMdll(int8(0),'MOLAR BASE SI').iEnum;"

Display it:

incorrect use “ctREFPROP>GETENUMdll”

ValueError: The function GETENUMdll could not be loaded from the shared library.

ianhbell commented 3 months ago

Please upgrade to REFPROP 10, or use the functions from REFPROP 9.x (all exposed in the same python interface)