LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Refprop to calculate a refrigerant state

Hi,

I would like to know how can I calculate a refrigerant state (e.g. subcooled or superheated)  using Refprop in labview? 

Thanks

 

Alhabeeb

0 Kudos
Message 1 of 18
(540 Views)

Hi alhabeeb,

 


@alhabeeb wrote:

I would like to know how can I calculate a refrigerant state (e.g. subcooled or superheated)  using Refprop in labview?


You can do so by using a proper interface to RefProp and by calling the right functions with correct parameters…

 

I recommend to use the FluidProp interface with RefProp as calculation library in the background.

(And based on your earlier messages I also recommend to learn more LabVIEW basics before starting this task.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 18
(536 Views)

@GerdW  a écrit :

You can do so by using a proper interface to RefProp and by calling the right functions with correct parameters…

 

I recommend to use the FluidProp interface with RefProp as calculation library in the background.

(And based on your earlier messages I also recommend to learn more LabVIEW basics before starting this task.)


I downloaded it from https://asimptote.com/afrekenen/order-received/7369/?key=wc_order_EhjXAKvIbFSLJ ,but it didn't work (not installing)!

 


@GerdW  

(And based on your earlier messages I also recommend to learn more LabVIEW basics before starting this task.)


 Yes I do in parallel.

 

Thanks

Alhabeeb

0 Kudos
Message 3 of 18
(530 Views)

Hi alhabeeb,

 


@alhabeeb wrote:
I downloaded it from https://asimptote.com/afrekenen/order-received/7369/?key=wc_order_EhjXAKvIbFSLJ ,but it didn't work (not installing)!

When you bought software and the software doesn't work (as expected) then you need to contact those who sold the software! What does Asimptote say about your problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 18
(511 Views)

Is it possible without Fluidprop?

 

Thanks 

Alhabeeb

0 Kudos
Message 5 of 18
(506 Views)

Hi Alhabeeb,

 


@alhabeeb wrote:

Is it possible without Fluidprop?


Yes. RefProp/NIST used to provide a basic LabVIEW example VI!

 

(IMHO the FluidProp API is much more comfortable than using the RefProp API directly…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 18
(490 Views)

There's also another thread here (not the only one mind you), that shows how to call the RefProp DLL directly. But remember, the VIs presented therein do not support everything the RefProp DLL can do. For the functionality they support it is fairly ready to use, but if you need other functionality it's going to be a serious effort. The existing VIs are a good way to show how it can be done for other functions but you need to know quite a bit about how to call the RefProp.dll, including what is needed when calling it in another environment like from C.

https://forums.ni.com/t5/LabVIEW/refprop/td-p/272079

 

Also this github repository has a wrapper available for a lot of the RefProp functions.

https://github.com/usnistgov/REFPROP-wrappers/tree/master/wrappers/Labview

 

Fluidprop is an ActiveX implementation of the RefProp library. Active X is an old legacy technique but has the advantage to not bother the user with having to configure a Call Library Node correctly (and punish any incorrect configuration with a potential crash).

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 18
(473 Views)

I used "call library function nodes" alhabeeb_0-1739379580668.png then double click 

alhabeeb_1-1739379695701.pngand I set like this.

in parameters 

alhabeeb_2-1739379774242.png

I add manually the inputs and outputs?

Thanks

 

Alhabeeb

 

 

 

 

0 Kudos
Message 8 of 18
(457 Views)

@alhabeeb wrote:

I used "call library function nodes" alhabeeb_0-1739379580668.png then double click 

alhabeeb_1-1739379695701.pngand I set like this.

in parameters 

alhabeeb_2-1739379774242.png

I add manually the inputs and outputs?


Basically, without knowing quite a bit about C programming, and being able to read the according header file for the refprop.dll, what you try to do is about the same as trying to ride your car with a blindfold on. You can try to do it, but the chance that you will be successful is not very big.

Rolf Kalbermatter
My Blog
0 Kudos
Message 9 of 18
(437 Views)

@Travis_M.  a écrit :

but please let us know if you have any questions on how to use the Call Library Function Node VI in LabVIEW with either calling convention.


Hi Travis_M,

Yes I have questions on how to use Call Library Function Node. I have pressure and temperature and I want to calculate the refrigerant state (e.g. subcooled or superheated).

 

I used "call library function nodes" 

alhabeeb_0-1739433703191.png

 then double click to configure like this. 

alhabeeb_1-1739433703180.png

I got confused about how to add the inputs and outputs in parameters? I need to have pressure as an input to find saturated corresponding temperature as an output.

alhabeeb_2-1739433703169.png

Thanks

 

Alhabeeb

0 Kudos
Message 10 of 18
(410 Views)