11-01-2013 03:17 PM
I need to build a shared library for NI Linux Real-Time (.so) that corresponds to a shared library I am creating on Windows (.dll).
I have C code that needs to call a VI function. On Windows, I have a project that allows me to create and build a "Shared Library (DLL)", but I don't see the same option available within a real-time project targeting the cRIO-9068. Am I missing something, or is this not yet possible?
Solved! Go to Solution.
11-05-2013 08:34 AM
Hi WWarren,
Unfortunately creating DLLs on the Linux Real-Time is not possible. That's because there is no binary compatibility with the Windows OS and ARM Linux (a subgroup of Linux).
This would require a cross compiler, something that is being looked in to and this function may be available in the future.
Regards
11-05-2013 04:53 PM
Thanks for clarifying that. Since I am already creating DLL's for Windows and SO's for NI Linux Real-Time, I was hoping that VI's could be encapsulated on both systems.
But the real goal is to tap into LabVIEW functionality, for example, encryption, from C code. Would there by any other way to access the functionality of a VI or LabVIEW runtime other than making a DLL out of a VI?
11-06-2013 10:05 PM
Hi Wayne,
Using LabVIEW VIs in other programming environments can only be done via DLLs. In LabVIEW there are options for creating source distributions and libraries but these will only be accessible in LabVIEW and not in other programming environments.
Regards