08-22-2022 03:36 AM
Hello,
I would like to know if there is a clean way to close an EXE after calling other EXE(both built with LabView):
(I would like to avoid killing APP1.exe from APP2.exe)
Thank you
Solved! Go to Solution.
08-22-2022 03:56 AM
A LabVIEW exe stops when all VIs stopped running. So a clean way to stop the exe is to terminate all loops, and the exe stops. That also allows all processes to finish cleanly.
Of course there's the Quit LabVIEW function...
Starting an exe can be done with .NET or though the command line (System Exec.vi).
08-22-2022 04:25 AM
Hello wiebe@CARYA,
The problem that I've got is that, when APP2 is called from APP1 using "System Exec.vi", APP1.exe gets frozen until APP2 is closed. So I cant use any command after opening APP2 ( Abort, Quit, Close this vi...)
08-22-2022 04:57 AM
Never mind!
I was using "System Exec.vi" with "wait until completion?" on default value (which is T). Just changing it to F solved the problem.
Thanks anyway.