ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

quit application

Hello,

 

I have to open the another application (exe) when i start the LVprogram. To open the application, i used the "system execution.vi".When i  stop the LVprogram, i want to close the another application. I don't know how to close this one. Can somebody help?Thanks in advance

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

Hi treasure,

is it a special program? If yes, maybe there is an API you can use. If not, then you can get the handle for this program and send a close commad to it.

 

Mike

0 Kudos
Message 2 of 5
(3,497 Views)

hello,

 

I guess you can just check the VI properties of the your other application and set the window appearance to custom - open and close..

 

best regards,

Nitzy

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

Hello Treasure,

 

I utilize Datasocket to communicate  between two LV program Main.exe (user interface) and Control.exe.  In addition with Control.exe I utilize a third party program.  When the user chooses Quit (in Main.exe), the main program wrote true in the Datasocket variable "CloseControl".  Control.exe reads this variable at each second and when CloseControl = true he kills the third party program (and close).

 

JM

0 Kudos
Message 4 of 5
(3,459 Views)

I utilize Kill only when it is not possible to use the command line argument in the the system exec VIs.

 

example Notepad: http://forums.ni.com/ni/board/message?board.id=170&message.id=358373&requireLogin=False

 

JM

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