Use LabVIEW to Call .so File in NI Linux Rt Target

Updated Apr 10, 2024

Environment

Software

  • LabVIEW

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)
  • Linux

This article explains how to build a LabVIEW wrapper for calling .so file in NI Linux RT Target.

  1. From your host computer, open LabVIEW.
  2. Use Import Shared Library Wizard to create the LabVIEW wrapper.
  3. Create a blank project and add the built *.lvlib to the project.
  4. Open any wrapper VI, double-click the Call Library Function Node. Change the Library name or path to /home/lvuser/natinst/bin/xxx.so

    3.png
     
  5. Ensure that the path of the *.so file has been changed to the directory set in the previous step.

    4.png
     
  6. Copy the *.so file to /home/lvuser/natinst/bin directory in NI Linux RT target system.