Requirements to Deploy LabVIEW Applications That Use Python Nodes

Updated Jun 18, 2024

Reported In

Software

  • LabVIEW

Programming Language

  • Python

Issue Details

  • I developed a LabVIEW application using LabVIEW Python nodes. When deploying it to a new PC, do I need to install Python?
  • Aside from the LabVIEW Runtime Engine, are there any other requirements I need to consider when porting my LabVIEW application that uses Python Nodes?

Solution

LabVIEW Python Nodes will let you call Python code from LabVIEW.  Either if it is a regular VI or a portable application (executable or installer) the Python Interpreter needs to be installed on the PC running the application to make sure the Python code is executed successfully. The Open Python Node function looks for the interpreter in the default installation directory of the system. If Python is not installed on the deployed PC, you will get the error about missing Python interpreter.

Aside from the Python Interpreter make sure to port the Python script your application uses and locate it where it is referenced by your application.

Additional Information

Support for Python sessions was added in LabVIEW 2018. Use the Integrating Python Code in LabVIEW web page to determine the Python versions supported depending on the LabVIEW version you are using.

If you are using an older version of LabVIEW 2018, Perl and Python Scripts can be called from LabVIEW using the System Exec VI.