LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

refprop DLL 文件的调用 EXE文件和源码VI,一起分享一下。

Solved!
Go to solution
Solution
Accepted by kenpop

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.

 

 

 

0 Kudos
Message 11 of 16
(2,862 Views)

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

0 Kudos
Message 12 of 16
(2,721 Views)

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

 

 

 

0 Kudos
Message 13 of 16
(2,593 Views)

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.

Rolf Kalbermatter
My Blog
Message 14 of 16
(2,579 Views)

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.

Rolf Kalbermatter
My Blog
Message 15 of 16
(2,556 Views)

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.

0 Kudos
Message 16 of 16
(2,538 Views)