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 comentarios

Esteban Felipe
Esteban Felipe el 30 de Jun. de 2022
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 el 5 de Jul. de 2022
This works fine!!
Yifeng Tang
Yifeng Tang el 29 de Jul. de 2022
@Esteban Felipe Please consider copying your comment into the Answer section, since you've solved the issue :-)

Iniciar sesión para comentar.

Respuestas (1)

Florian
Florian el 28 de Feb. de 2024

0 votos

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

Categorías

Más información sobre Schedule Model Components en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 27 de Sept. de 2021

Respondida:

el 28 de Feb. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by