LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Jump from EXE to EXE, closing the former one

Solved!
Go to solution

Hello,

I would like to know if there is a clean way to close an EXE after calling other EXE(both built with LabView):

  1. APP1.exe runs
  2. APP1.exe calls APP2.exe
  3. APP1.exe closes itself
  4. APP2. exe keeps running

(I would like to avoid killing APP1.exe from APP2.exe)

Thank you

 

0 Kudos
Message 1 of 4
(1,141 Views)

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).

 

 

0 Kudos
Message 2 of 4
(1,126 Views)

Hello ,

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...)

0 Kudos
Message 3 of 4
(1,112 Views)
Solution
Accepted by topic author SerP

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.

0 Kudos
Message 4 of 4
(1,086 Views)