Problem linking RefProp to MatLab

Hi
I am trying to connect RefProp(V9.1) to MatLab(V2016b). I have followed two guides ( Here from GitHub and Here from NIST). I have downloaded the files:
  • refpropm.m
  • REFPRP64.dll
  • refprop.h
  • REFPRP64_thunk_pcwin64.dll
  • rp_proto64.m
I have tried having them both in the RefProp directory and in a separate folder, but to no avail. I linked MatLab to the folders when I was testing. I always get the same error.
>> testVal=refpropm('T', 'P', 101.325, 'Q', 0, 'water')
Error using loadlibrary
Too many input arguments.
Error in ==>@()rp_proto64(BasePath) at 211
There was an error running C:\Program Files (x86)\REFPROP\refpropm.m.
Run @()rp_proto64(BasePath) from the command line to reproduce the error and fix it.
Error in refpropm (line 227)
[notfound,warnings]=loadlibrary(strcat(BasePath,dllName),prototype,'alias',libName);
Caused by:
Error using rp_proto64
Too many input arguments.
Has anyone had the same error and solved it? Any suggestions?
Thank you for any help

댓글 수: 5

Dayle Alexander
Dayle Alexander 2018년 9월 19일
Hello. Did you ever get this issue resolved? I am having the same error.
Jonas Hilpert
Jonas Hilpert 2019년 5월 11일
me too. Did u fix the problem already?
Vijay Nishad
Vijay Nishad 2020년 2월 18일
Thanks! Check the video of muon_neutrino channel " How to link refprop with matlab "
It is easy.
priyanshu chhabra
priyanshu chhabra 2020년 4월 10일
Error using loadlibrary
There was an error loading the library "C:\Program Files (x86)\REFPROP\REFPRP64.dll"
Undefined function 'rp_proto64' for input arguments of type 'char'.
Error in refpropm (line 227)
[notfound,warnings]=loadlibrary(strcat(BasePath,dllName),prototype,'alias',libName);
Caused by:
Undefined function 'rp_proto64' for input arguments of type 'char'.
this error it is showing, help me out
@priyanshu chhabra , I experienced the same problem here. You should move the 'rp_proto64.m' to the same directory as your <working>.m file. Then try to run the <working>.m again. You should not experience the error again.

댓글을 달려면 로그인하십시오.

답변 (1개)

Li Yucen
Li Yucen 2019년 6월 9일

0 개 추천

1.Try to upload the Matlab and Refprop to latest version, I used 10.0 NIST and R2018b MTABLAB.
2. Involve all of them. Try to google and download the REFPROP.DLL, REFPROP64.DLL,REFPROP64.LIB, and five functions.
捕获.PNG

댓글 수: 3

yuer xiao
yuer xiao 2020년 5월 27일
大神,这几个文件你能发我一份吗?756594276@qq.com谢谢!
refprop64.dll, REFPRP64_thunk_pcwin64.dll, refpropm.m, rp_proto64.m
Hao
Hao 2023년 9월 28일
大神 求nist10 278696076@qq.com 谢谢!
德华 刘
德华 刘 2023년 11월 14일
大神,可以把REFPROP.DLL, REFPROP64.DLL,REFPROP64.LIB和五个函数文件发一下吗?13281122451@163.com万分感谢!!!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 12월 8일

댓글:

2023년 11월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by