MATLAB Answers

Problem linking RefProp to MatLab

143 views (last 30 days)
Martin Olafsen
Martin Olafsen on 8 Dec 2017
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)
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
Cahya Amalinadhi Putra
Cahya Amalinadhi Putra on 1 Oct 2020
@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.

Sign in to comment.

Answers (1)

Li Yucen
Li Yucen on 9 Jun 2019
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.
  1 Comment
yuer xiao
yuer xiao on 27 May 2020
refprop64.dll, REFPRP64_thunk_pcwin64.dll, refpropm.m, rp_proto64.m

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!

Translated by