01-23-2009 02:14 AM
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
01-23-2009 02:19 AM - edited 01-23-2009 02:23 AM
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
01-23-2009 02:25 AM
01-23-2009 02:32 AM
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
01-23-2009 04:15 AM