From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-25-2010 11:23 AM - edited 03-25-2010 11:29 AM
Hello,
I am using System Exec VI to lauch an exe file built from a LabVIEW program. When running System Exec VI, the window of exe file pop out and stays there even after all tasks are completed. I have to close it every time manually. Anyone here know how to close the exe file window automatically when it's done?
Thanks,
Jean
Solved! Go to Solution.
03-25-2010 11:54 AM
Is this the application's GUI window, or is the app a console application? Do you have System Exec's "wait until completion" set to True or False?
What operating system are you using? If you're on Windows you can use the Windows API to force-destroy the Window using the FindWindow() function to get the window handle, and then DestroyWindow() to destroy it. Both of these can be called using the Call Library Function Node function. You can download the Windows API Function Utilities for LabVIEW to see how to call these functions.
03-25-2010 12:18 PM
03-25-2010 12:36 PM
05-29-2013 10:19 AM - edited 05-29-2013 10:20 AM
q