LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a shared library for NI Linux Real-Time

Solved!
Go to solution

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?


----------------------
Wayne Warren
CTO
Raima, Inc.
0 Kudos
Message 1 of 4
(3,201 Views)

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

Arham H
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,150 Views)

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?


----------------------
Wayne Warren
CTO
Raima, Inc.
0 Kudos
Message 3 of 4
(3,142 Views)
Solution
Accepted by topic author WWarren

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

Arham H
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,126 Views)