LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Python console

Hello,

 

I'm using the new Python Node to integrate functions, written in python, into Labview. Now I need to debug the Python code and, to do this, I need to open the Python console. Is there a way to tell the Python Node to open the console at startup?

 

Thanks a lot,

 

Francesco

0 Kudos
Message 1 of 2
(2,601 Views)

Hi Francesco,

I am including the snippet of a simple example VI.

example.png

The code in the run_cmd.py file (whose exact path has to be specified in the front panel) is as follows:

import subprocess

     def run_cmd ():

     subprocess.call("start /wait py", shell=True)

I don't know if this is the result you wanted to achieve, however I hope you'll find it useful at least as a starting point.

Regards,

Alessia

0 Kudos
Message 2 of 2
(2,556 Views)