Executing Parallel Processes with the Python Node in LabVIEW

Updated Feb 24, 2022

Reported In


  • LabVIEW 2018

Programming Language

  • Python

Issue Details

I am writing a LabVIEW application that uses the Python Node to call multiple Python functions. How do I ensure that my Python functions will execute in parallel?


To execute Python functions in parallel, each Python Node call must use its own unique Python session. If you make multiple parallel Python Node calls using the same Python session, the Python Nodes will still execute in sequence rather than in parallel.

The following is an example of calling two Python functions in parallel using two separate Python sessions. Note that the while loops are set to terminate after just one iteration. However, this instructs the compiler that these two processes should run in parallel.