Link: Simulink and Refprop

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 ExchangeSchedule Model Components についてさらに検索

製品

リリース

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