Example Code

Scan Network for all Pingable IP's Using LabVIEW

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

Download All

Overview

This code uses the .NET ping methods to ping all IP's collected from the Windows network diagnostics tool in the command prompt.

 

Description

The program revolves around the usage of the Windows diagnostics tools available through the command "arp -a" and ping all of the IP.s from this command to see which ones are valid and place these into an array.

 

Requirements

Software

LabVIEW 2013 (or compatible)

Windows Operating System

 

 

Steps to Implement or Execute Code

  1. Open Code on Networked computer.
  2. Open Ping 2013 NIVerified.vi
  3. Input the Gateway, or left it empty.
  4. Run the VI. 

Additional Information or Reference

1-394BD.png 

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

 

 

 

James Kent | Applications Engineer | National Instruments UK & Ireland
w: uk.ni.com | ireland.ni.com

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

Comments
angelluiss
Member
Member
on

Hi, thanks for the program, is excellent! I have a little problem, i need to scan all ip's from a wifi network in my project, can you help me with that?