Example Code

Ping Network Device and Retreive IP Address

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
The attached VI provides ping functionality on RT controllers running the VxWorks and the NI Linux Real-Time OS. Running the VI will return ping information for a device on the network.

Running this VI on a Phar Lap Real-Time target will only let the user know that a host name has been successfully located on a network, but will not return the IP address of the pinged host or the time to ping.


Description
The attached VI provides ping functionality on RT controllers running the VxWorks and the NI Linux Real-Time OS. Running the VI will return ping information for a device on the network.

Running this VI on a Phar Lap Real-Time target will only let the user know that a host name has been successfully located on a network, but will not return the IP address of the pinged host or the time to ping.


Requirements

Software:

  1. LabVIEW 2015(or compatible)

Hardware:

  1. LabVIEW Real-Time Target

 

Steps to Implement or Execute Code

  1. Download the .zip file
  2. Set your desired configuration (a, x1, x2, degrees, etc)
  3. Run the VI

 

Additional Information or References
VI Block Diagram

1.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
A._Dek...
Active Participant
Active Participant
on

Works perfectelly using linux RT.

Just one point : the timeout is in seconds, not in milliseconds (wih linux, I didnt' check for other OS).

and also missing input output connections to use it as a sub-VI.

Adeline.

SierraFoxtrot
Member
Member
on

Hello everybody.

I'm using LabVIEW 14.0.1 and now i can't open the VI (LabVIEW 15.0).

Is there a way for me to open it or to see the code so i can build it myself?

SierraFoxtrot

A._Dek...
Active Participant
Active Participant
on

Hello SierraFoxtrot,

I tried to add my own version using LabVIEW2013 on this document, but it need to be approved by this author (I can not add attached VI in this message)

If the modification is not approved quickly, I suggest you to open a new discussion on the NI forum and post a new message here with the link : I will be able to send you the VI using this way...

For information, my version is also using the DOTNET PING from this document (for the Windows PING):

https://decibel.ni.com/content/docs/DOC-22841

Best regards,

Adeline.