LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to keep command prompt open and running python script

Command Prompt.PNG 

 

This gets me to the correct directory, but doesn't run the "python server.py" command. 

The standard output is:
C:\Python34> 

Showing the right directory, but doesn't run the python command. And with cmd /K, the command prompt won't stay open and I think it closes out of the server.py if it actually does start running it. 

 

I try and run a client.vi after this, but it won't run unless my server is up. The client vi works if I manually open the command prompt and run the python server.

 

In case it's useful, the error out indicator shows the status as passing.

 

Thanks for the help!!

0 Kudos
Message 1 of 2
(3,416 Views)

You have D:\Python34 in your string constant rather than C:\Python34.  Is that the issue?

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 2
(3,377 Views)