Solution
LabVIEW 2018 introduces the
Python Node, which provides native capability to intuitively call a Python script from a LabVIEW Block Diagram. It uses LabVIEW primitives, providing a way to interoperate between the languages with low latency.
This will only work for LabVIEW 2018 or newer versions. Check considerations for
installing Python for using with the LabVIEW Python functions.
Examples for using the Python Node are available in the
LabVIEW Example Finder (found in
Help >> Find Examples...) under
Communicating with External Applications >> Using External Code >> Integrating Python Code.