LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Kill remotely LabVIEW process on Windows 7 and 8.

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(3,138 Views)

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.

 

George Zou
0 Kudos
Message 2 of 9
(3,119 Views)

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,

0 Kudos
Message 3 of 9
(3,112 Views)
Solution
Accepted by topic author Michel_Gauvin

So can you change LabVIEW program on both computers?

If not, can you create a new program just to kill the named process?

 

George Zou
0 Kudos
Message 4 of 9
(3,096 Views)

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

0 Kudos
Message 5 of 9
(3,085 Views)

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.

 

George Zou
0 Kudos
Message 6 of 9
(3,081 Views)

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

0 Kudos
Message 7 of 9
(3,020 Views)
0 Kudos
Message 8 of 9
(2,995 Views)
0 Kudos
Message 9 of 9
(2,995 Views)