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.
01-29-2015 08:48 AM
Hello,
What is the best way to kill "remotely" a LabVIEW process. Example: Computer A wants to kill a LabVIEW executable on Computer B. Both computers can run Windows 7 or 8. The two computers are on my LAN and I have the administrative priviledge on them.
I have tried with "pstools" but I can't get it to work.
Thanks,
Michel
Solved! Go to Solution.
01-29-2015 10:53 AM
If you can change the LabVIEW program, than add a TCP listener in it. On Computer B, send a message, e.g. "Exit", to terminate the LabVIEW program nicely.
If you can't change the program, then try Windows Remote desktop.
01-29-2015 11:20 AM
My current need is to kill the LabVIEW application that runs on Computer B programmatically from a LabVIEW application that runs on computer A.
Thanks,
01-29-2015 12:00 PM - edited 01-29-2015 12:02 PM
So can you change LabVIEW program on both computers?
If not, can you create a new program just to kill the named process?
01-29-2015 12:20 PM
Hello zou,
Yes I can modify both application and I can create a new one.
I'm going with the creation of a new one. The kill was in the case where the application hang (for any reasons) after a few month. A backup application will take over but I want the backup application to "try" to kill the previous active one.
Thanks,
Michel
01-29-2015 12:28 PM
Have you played the Windows service before?
LabVIEW can create a Windows service.
Use a service to monitor an application to make sure it works.
If not, kill it and launch another instance of it.
Hopefullly, a LabVIEW service is more reliable than a LabVIEW application.
01-31-2015 07:10 AM
Hello Zou,
The windows service is a good idea which I want to pursue. I never played with windows service in the past and I've made search on ni.com to find how to make one to run under Windows 7 or 8 but without any success. Do you have a link that you can share that explains how to do it?
Thanks,
Michel
01-31-2015 12:20 PM
01-31-2015 12:21 PM