该内容不适用于您选择的语言

该内容将以另一种语言显示出来。 您可使用浏览器的翻译功能查看内容。

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.