Use .so File with cRIO and LabVIEW Real-Time

Updated May 3, 2018

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW Real-Time Module

Operating System

  • NI Linux Real-Time

Issue Details

I want to be able to call .so files from my LabVIEW code on my CompactRIO (cRIO).

Solution

If you want to call a function from a .so file in LabVIEW, that will be possible using a Call Library Function Node. However, the .so file will have to be compiled specifically for the real-time target you are using. This can be done from C or C++ code with a free tool, C/C++ Development Tools for NI Linux Real-Time. You can check the operating system of your cRIO from Real-Time Controllers and Real-Time Operating System Compatibility. 

The .so file must be is placed in a directory on the target with proper permissions and referred to in the LabVIEW code with the correct file path on the target.

WAS THIS ARTICLE HELPFUL?

Not Helpful