09-11-2015 01:19 PM
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.
09-11-2015 01:55 PM
Try this library....