How to Ping an IP Address from LabVIEW?

Updated Mar 27, 2019

Reported In


  • LabVIEW

Issue Details

I would like my LabVIEW application to check the connection with an other device on the network. How can I send a network ping using LabVIEW?


In real world network-based applications it is important to know if a link is up and running, as well as cable and connector statuses (checking for damage, water intrusion and such...). To obtain such feedback, we can use the built-in Windows OS ping feature. After a successful ping session, you can execute more complicated network tests. The most important step in executing ping commands is to not generate too many requests and to not overload the network, especially if the ping command would be part of automated routing inside a complex application.

The following example utilize the built-in Windows OS ping feature to perform a ping using LabVIEW. This example uses .NET calls.


Additional Information

Using the ping command may be a potential source of memory leaks, since every reply is a new instance. If you perform the ping periodically it is necessary to close these. Also when you application ends do close all the .NET references.