06-21-2019 09:43 AM
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
06-24-2019 05:43 AM
Hi Francesco,
I am including the snippet of a simple example VI.
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