LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to keep "System Exec" section open

Hi,

 

I use "System Exec" to launch a Python script.  The script launched successfully, however, the System Exec also ended.  There are many environment settings done by this Python script so I want to keep the section open for subsequence Python scripts/commands.  Could this be done with "System Exec"?  If not, what is the easy way to do this.  Some example would be great.

 

thanks,

-a

0 Kudos
Message 1 of 5
(3,098 Views)

Hi Anh,

it should stay opened if you connect a false constant to the "wait for end of operation" input on top of the vi.

Another possibility could be to load your script from a batch file with a "pause" command at the end.

 

Mike

Message Edited by MikeS81 on 01-23-2009 09:23 AM
0 Kudos
Message 2 of 5
(3,096 Views)
 
0 Kudos
Message 3 of 5
(3,092 Views)

Hi Mike,

 

I tried that "wait until completion -> False" already.  It will keep the actual "cmd window" open, but not the Labview section.  What I want to do is to run the initial Python setup script, keep this Python section open, then at random times later, my LV program will send more Python commands/scripts to the same opened-section.  

 

thanks,

-a

0 Kudos
Message 4 of 5
(3,090 Views)
Have you tried LabPython?
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 5
(3,070 Views)