LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert CoolProp vi from LV2019 to LV2014

Hi, I am new to the board and have a little experience in LV.  I want to use CoolProp in LV to get R290 properties as P and T data comes in during testing.  I found and downloaded the dll and the vi but I am using LV2014 and the vi is in LV2019.  I get the error in the picture.  Is there a way to back save the vi to work in LV2014 and if so, would someone be kind enough to do that?  I have no way to use it if not. Thanks so much.

Download All
0 Kudos
Message 1 of 5
(136 Views)

You can try the attached, not sure if back saving without the dll affected anything

0 Kudos
Message 2 of 5
(115 Views)

Hi mcduff,  Thank you for converting that to 2014 version. I appreciate you taking the time.  I don't get the error now when trying to open the vi.  I do think the dll is not compatible with the version I am using.  When I try to follow the instruction in the attached file which is at the link Labview Wrapper — CoolProp 6.8.0 documentation It does not show all the files inside so I think it may be a newer version of the dll and lib files.  I am not sure.  Do you have any advice that would help get it working.  Thanks so much!

0 Kudos
Message 3 of 5
(77 Views)

@d_mc wrote:

 Do you have any advice that would help get it working.  Thanks so much!


Sorry, dlls can be tricky. Make sure you are using 32 bit LabVIEW, not sure if a 64 bit version is available. The other issue can be other dlls that your dll depends on. You have to make sure that those dlls are also available.

 

Hopefully someone experienced with this dll can chime in. 

0 Kudos
Message 4 of 5
(66 Views)

Hi mcduff,

Thank you for taking the time.  I was able to get it to work.  I found something on another thread that showed that in the Call Library Function on the Function tab that the Calling convention was supposed to be stdcall (WINAPI) and not C.  When I changed it, it works.  Well at least for finding properties that follow the properties' function protopype.  When I try to use another function like for "PhaseSI" I can't get it to work and it crashes Labview.  The function prototype is automatically loaded when you select the function name on the function tab but then you have to set parameters in the parameters tab.  Not sure what to do I am trying different things and hopefully something will end up working.  Thanks so much!

0 Kudos
Message 5 of 5
(27 Views)