Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Ping a Device Programmatically

Overview

Pinging a device from the Command Prompt is a useful tool for identifying a valid connection to that device. 

Description


In order to automatically perform this operation, we can run a VI that operates in the background, continually pinging the device.  When the device is disconnected from the network, the VI will indicate that a disconnect has occured.

Capture.PNG

snip.png


Steps to Implement or Execute Code

  1. Enter the IP address of the device you'd like to ping (leave the "ping" string intact).
  2. Run the VI
  3. If the device is disconnected, the "Device Connected" LED will go out.
  4. Stop the program when you're ready.

Requirements

Software: LabVIEW 2013 or later

Hardware: device on a network



Andy G
Applications Engineering
National Instruments
Contributors