LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Python from Labview

Solved!
Go to solution

A very general question

Currently using a Python program to calculate spectrum parameters

LED47_0-1787234742930.pngLED47_0-1787234742930.png

Starts and terminates a Python interpreter each time

 

In order to speed up my processing is there any way that I can start the Python interpreter, calculate without terminating?

 

I'm thinking this would save time and I could calculate multiple spectrums in succession.

 

0 Kudos
Message 1 of 3
(112 Views)
Solution
Accepted by topic author LED47

You can use the built in Python node. You can open the node and leave it open when the VI runs and close it when your program exits. I found the first calculation in the node is "slow", then subsequent calls are significantly faster.

0 Kudos
Message 2 of 3
(103 Views)

Yes that makes sense Thank you

0 Kudos
Message 3 of 3
(63 Views)