05-04-2009 04:32 AM
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
05-04-2009 04:37 AM
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
05-04-2009 06:08 AM
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
05-04-2009 07:26 AM
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
05-04-2009 07:44 AM
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