I want to read the thermal properties of a fluid on Simulink using REFPROP. So far, I cannot make it work.
I already used the refpropm function on Matlab but I dont know if it can be used in Simulink.
Anyone here used managed to use Refprop in Simulink?

댓글 수: 3

Esteban Felipe
Esteban Felipe 2022년 6월 30일
i´ve the solution. you must copye this line in your function code ...
coder.extrinsic('refpropm')
so, you'll can to call the refprop code in your matalbfunction
grettings from Chile
Richard Rangel Alarcón
Richard Rangel Alarcón 2022년 7월 5일
This works fine!!
Yifeng Tang
Yifeng Tang 2022년 7월 29일
@Esteban Felipe Please consider copying your comment into the Answer section, since you've solved the issue :-)

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

답변 (1개)

Florian
Florian 2024년 2월 28일

0 개 추천

Add to your matlab code:
coder.extrinsic('refpropm')
another thing is you have to declare your variables for e.g.
x = double(0);
then it should work fine

카테고리

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

제품

릴리스

R2021b

질문:

2021년 9월 27일

답변:

2024년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by