11-09-2017 02:57 PM
Hello.
I tried the search function but without success.
In my application that uses a touch screen, I open Tabtip.exe using 'system exec' vi and the user enters his data.
When that is done, I start a test, but would like to programmatically close Tabtip so the display is visible.
I tried using TASKKILL /F /IM TabTip.exe with 'system exec' but no luck.
When I use the physical keyboard with task manager to kill the process, there is a pop up that asks for a confirmation. May be that is the reason for Tabtip not responding to the LV kill command.
Anybody had success doing this?
Thank you.
11-10-2017 10:10 AM
Hi LVmike,
Have you tried using taskkill with a different executable? Could you also post your VI or a screenshot of it? It would be helpful to determine whether it's a problem with your implementation of system exec or with the executable itself.
Thanks,
11-10-2017 10:23 AM
Hi Daniel.
Here is an exemple vi. It is able to open Tabtip, but can't close it.
Thanks.
11-10-2017 11:48 AM
Hm that looks like it should work. Have you tried opening command prompt while Tabtip is running and entering that command to see if it will close? Also, could you try executing the command with a different executable?
Thanks,
11-13-2017 08:48 PM
Don't kill an application! It could cause memory leak. Close it nicely.
You can use "Quit Application.vi" in Windows API Function Utilities (32-bit) for LabVIEW:
http://www.ni.com/example/29935/en/
11-14-2017 09:59 AM - edited 11-14-2017 10:00 AM
daniel.f a écrit :
Hm that looks like it should work. Have you tried opening command prompt while Tabtip is running and entering that command to see if it will close? Also, could you try executing the command with a different executable?
Thanks,
Daniel, I tried to kill Tabtip.exe from the command prompt, but got an error.
I tried to use notepad.exe instead. It is working with notepad.
Thanks.
Edit: I am admin on this computer.
11-14-2017 10:02 AM
zou a écrit :
Don't kill an application! It could cause memory leak. Close it nicely.
You can use "Quit Application.vi" in Windows API Function Utilities (32-bit) for LabVIEW:
http://www.ni.com/example/29935/en/
Zou, I downloaded the libraries and tried them in LV 2013 and LV7.1, but they don't work.
I get error 6002.
Thanks.
11-14-2017 12:30 PM
Did you entered the window title? 6002 indicates window not found.
Did you try it on a Notepad?