LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring Shutdown of remote PC

Hi,

I want to monitor the Shutdown of a PC. The two VIs work well if I run both on the same PC. When I run them on diffrent PCs, I get a TCP Connection, but no Data transmitted in the Shutdown case. When I make the MonitorShutdown.vi to run as a service, I even don't get the TCP Connection (didn't try on only one PC).
The VIs are attached an pretty simple:
* MonitorShutdown has an event structure, Timeout checks if the TCP-Connection is valid and listens otherwise, in the Application.Exit? Event the String 'Shutdown' is send. The FP-Indicators are to monitor if the connection is established if run as an exe (not as service).
* The Wait4Shutdown just Connects to the Server and displays a dialog if it receives the String 'Shutdown.

Felix
Download All
0 Kudos
Message 1 of 3
(2,602 Views)
Have you tried it with the examples in LabVIEW for TCP/IP? You can find them in Labview->Help->Find Examples.
Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,560 Views)
It is working now, the port seems to be used on the target machine.

Felix
0 Kudos
Message 3 of 3
(2,553 Views)