LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

systemexe.vi

I am using system exe to run a batch file but just wondering how my labview program knows that all the command in the batch file is finished? I want the batch file to end before I do somethings else.
thanks
0 Kudos
Message 1 of 4
(2,681 Views)
There is a "wait until completion" input to the vi and its default value is already True.
So you don't need to do anything special.
Or maybe you are interested in HOW this works? I don't know, but I guess it is based on finding the console window by title.
Another possibility: If the batch is run as a child process, its status can be checked by the parent.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(2,665 Views)
You did answer my question. That was exactly what I asked. Thank you very much, Paolo. I appreciated it.
0 Kudos
Message 3 of 4
(2,652 Views)

Also, if an executable, which returns a value, is called by SysExec.vi, the value can be passed to the LV vi.  THis is especially useful to find out the status of the executable. Or to select an appropriate error message.

🙂

 

Message 4 of 4
(2,646 Views)