01-12-2015 11:46 AM
Hello all, I am trying to use NIST data base but this time in CompactRio, I have found great information on how to do this in Labview only using this link:
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm#LabViewApplications
using the method above i have to put all the already made DLL and header files in Labview library and then call them using "Call Function Library Function Node". easy peasy
but now I want to use the same stuff in cRIO, from my understanding i will need to some how compile those files and install it on the cRIO, has any one done this before?
is there any easier way? can I some how do it through my project?
BTW i have red this link but it was of no value to me as i don't have a clue what it is talking about:
http://www.ni.com/white-paper/5694/en/
i do appreciate if some one call help me here.
01-12-2015 11:53 AM
Hi amir,
is there any easier way?
Well, I use RefProp too on a Windows PC. But on cRIO (or similar) I just use pre-calced maps for all physical units I would calc with RefProp. Usually you don't change your media that often…
01-12-2015 12:17 PM
Hello GerdW
thank you for your reply, I might do what you proposed but as the last solution. I need to come up with a universal method to be used with any systems for any gases we have here, it makes it hard to just do the map for all gases and every condition.
but still i will wait to see if anyone else has a solution.
thank you
01-13-2015 09:19 AM
The OS system on my cRIO is VxWorks RTOS, I do not have the right compiler to complile the .DLL file to .Out library for VxWorks systems, i thought some one might had done this already.
i have attached the zip file with all the infromtation required, I want to be able to run the "Refprop_Example_main.vi" from folder "Refprop_Example" on cRIO. (I can already run it on the Labview on my PC)
01-13-2015 10:25 AM - edited 01-13-2015 10:27 AM
Considering that the article "Developing Shared Libraries for the cRIO-901x and Other VxWorks Targets" doesn't mean much to you I would recommend you strongly to go with the recommendation from Gerd.
From a quick web search you would first have to compile gfortran from sources (which might be more than just a recompile as there is a chance that the sources would need at least some configuration changes too) and then use that to compile the Fortran files into a VxWorks out file. Both steps are highly special and you will be hard pressured to find anyone who has already done it and if there is one, he most likely won't share his results freely.
Other thread is located here. I would estimate the effort to get this all working properly to at least several weeks, and that is assuming that you know Linux/VxWorks, GCC, C compiling etc. fairly well.