05-28-2012 07:49 PM
Hi guys,
Did you downloaded the Labview code from NIST websites following.....
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm#LabViewApplications
If you have any problem how to call REFPROP with Labview . Pls mail your issures to me. Have a good day.!! It is my pleasure to help you .
ken_pop.
07-25-2013 07:57 PM
I have updated the Labview example code on NIST web page. This update include many additional routines and header file of dll.
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm#LabViewApplications
01-13-2015 08:08 AM - edited 01-13-2015 08:09 AM
Hello guys
I can see that you have a good knowledge about NIST refprop, i have downloaded and used the refprop files from the link below and everything works fine, but my problem is to use the code in cRIO, which means i have to compile the code and install it as a library to cRIO. Do you know if it has been done before? if not what is the easiest way to use the same files to do this?
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm#LabViewApplications
01-13-2015 09:58 AM - edited 01-13-2015 10:17 AM
You'll need to get the Fortran source files for the DLL itself, and get them to recompile for your cRIO target as a shared library, unless you use an old Pharlap based cRIO. On Pharlap there is a small chance that the Windows DLLs would work, since the Pharlap OS uses the Win32 execution model. However it is more based on the original NT4 Win32 API than the more modern 2K, XP, Vista, etc API so unless the used Fortran compiler for the existing DLL is a fairly old one, the DLL may not be possible to load on Pharlap either.
The Linux .so shared library files that they show on the page as being available won't work even for the new NI Linux based cRIO systems, since that Linux shared library is certainly compiled for the x86 CPU, while the NI Linux targets use an ARM CPU.
Note: It seems you want to do this for a VxWorks cRIO. This might be a tough cookie to crack. While there is gfortran which is an optional part of gcc, it is probably not available for VxWorks out of the box and you might have to compile that first from sources for your VxWorks version. There is a somewhat higher chance that gfortran is already precompiled for the NI Linux realtime controller, but even that might not be easy. I would guess you are in for a complicated procedure to get this eventually working on cRIO.
01-13-2015 01:05 PM - edited 01-13-2015 01:10 PM
A somehow less involved process (it only requires compiling C++ code into a .out library module to use on cRIO) would be maybe CoolProp. It's open source and has been specifically already compiled to support VxWork CompactRIO targets!
You might have to do some comparison to see if this project does your specific requirements but if it does, it's definitely much easier than getting the RefProp Fortran sources compiled to the cRIO VXWorks system.
01-14-2015 08:54 AM
Thank you for your help rolfk, i will go for the CoolProp solution and see if that will work for me, i will update you here.