LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network check

Hi, my work network sometimes drops connection. I use an OPC client over the network to collect data from an OPC server. The problem is when the network is not there, the program gets hung. And crashes Labview, what i need is something to check if the the OPC server is accessible by doing a network check, to make sure i have connectivity. Is the anything i can use to do this??

 

Stu

0 Kudos
Message 1 of 3
(2,470 Views)

can you ping the server or another network object to see if the network connection is there?

 

If you are using Windows XP or above, with .Net 2+, I have a .net ping VI, you can get it from my sample VIs page below.  Also you can use a command shell to do this and parse the return.


Paul
0 Kudos
Message 2 of 3
(2,459 Views)
You can also just try to the TCP/IP Open Connection as shown in this example. If you get an error, the host isn't there, or it's not listening.
0 Kudos
Message 3 of 3
(2,448 Views)