Integrate Conda Python Environment with LabVIEW

Updated Sep 9, 2020

Reported In

Software

  • LabVIEW
  • Enthought Python Integration Toolkit for LabVIEW

Programming Language

  • Python

Other

  • Anaconda (Conda) Environment

Issue Details

How do I make LabVIEW use code built in my Anaconda (Conda) Python Environment? I've used Python Integration Toolkit by Enthought which gives you the option, but the LabVIEW-native Python Node seems to use a different Python environment and I can't seem to change it.

Solution

Python installed within the Anaconda environment cannot directly communicate with LabVIEW using the Python Node. This is due to the way the environment wraps the Python interpreter, making LabVIEW unable to find the interpreter installation and unable to make the necessary calls.  

The officially supported Python environments that can communicate with LabVIEW are native Python 2.7 and 3.6 installed from The Python Software Foundation.

 

Additional Information

  • LabVIEW supports calling Python version 2.7 and 3.6.
    • Although unsupported versions might work with the LabVIEW Python functions, NI recommends using supported versions of Python only.
    • Ensure that the bitness of Python corresponds to the bitness of LabVIEW installed on the machine.
  • Use the Python Node to integrate Python Code in LabVIEW using code created in supported Python versions.