LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Ping Exception

I am trying to get a .NET ping VI to work that I found on the forums. It seems to work while pinging known good network locations that have a known good connection. However, when I enter a location (IP and/or FQDN name) that knowingly does not exist it throws an Exception/error rather than "DestinationUnreachable" message or something similar in the return string.

 

Also, it seems like I have to have the timeout control above 1000ms or it will encounter ping timeouts. Any idea of the signifigance of 1000ms setting for the timeout control? If I set it to 999 or lower I get pin timeouts.

 

I am trying to find a ping solution that will return a Pass/Fail or Success/Fail indicator so I can check if a network connection is present prior to uploading data to the network location. The .NET ping method seems like it will work for my needs except for the issues noted above.

 

My example VI is attached.

 

pingerror.png 

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

Try this library....

Raw Socket Ping 

aputman
0 Kudos
Message 2 of 2
(3,055 Views)