이 내용은 고객님의 설정 언어로 확인할 수 없습니다

이 내용은 다른 사용 가능한 언어로 표시됩니다. 고객님께서 사용하시는 브라우저에 텍스트 번역에 도움이되는 기능이 포함되어 있을 수 있습니다.

Executing Parallel Processes with the Python Node in LabVIEW

Updated Feb 9, 2024

Reported In

Software

  • 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?

Solution

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. The single-iteration While Loops are required for the two Python processes to run in parallel in LabVIEW 2022 Q3 and previous versions, but they are not necessary in LabVIEW 2023 Q1 and later.