LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem closing an external software application

Firstly, my apologies if this has been covered before.

 

I have a routine (written in LV7.1) that launches some third party software, using the System Exec.vi. When my code ends, I close this software using the Quit Application.vi in Winevent.llb. However, sometimes this external software displays an error message in a separate window, which is of no interest to me, but if it appears, Quit Application fails since the window requires an OK button to be clicked on, before it will close. Is there any way I can make Quit Application override this, or do I need to terminate the process some other way?

 

I’d appreciate any thoughts.

 

Thanks

Bruce

0 Kudos
Message 1 of 2
(2,287 Views)

There is no way to have that VI do that. You would need to simulate clicking on the dialog box (examples have been posted on using the Windows API to emulate clicking), or use the taskkill command.

0 Kudos
Message 2 of 2
(2,280 Views)