LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I monitor a TCP/IP connection if my data does not come perdiodically?

I have an application that connects to several acquisition devices where I get TCP packet data only when something changes. If the line gets cut, how can I monitor this so that the user of the application will know that no data will come from that certain acquisition device? Since the data does not come periodically, I cannot monitor the error from the TCP read function, i.e. Error 56 - Timeout.

Is there a way to find out if an IP exists for example? (Such as a ping but it shoudl be fast)

Thanks

0 Kudos
Message 1 of 2
(2,750 Views)
arikb-

You can use the System Exec.vi to run a ping command through the command line and see if it is responding. You could also program the client such that it responds to a simple command with a verification message at any time. This would be similar to sending a ping, but it will also let you know if your LabVIEW program is on the other listening on the correct port.

Xaq
0 Kudos
Message 2 of 2
(2,726 Views)