Example Code

Ping a Computer Name, IP, or URL Using System Exec with 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

Description

Overview

This VI calls the command line from within LabVIEW to execute the ping command.

 

Description

This VI uses the system exec.vi to ping a selected pc, ip, or url. The VI concatenates the string of ping and then the user-defined text to do the same thing as using the command prompt. The output appears on an indicator on the front panel and has the same information as what appears in the prompt. 

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Input the item you want to ping. (IP, computer or URL)

2. Run the VI.

3. Observe the result of ping operation.

 

Additional Information or Resources

2012.png

 

 

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

  

 

Chris Van Horn
Applications Engineer

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

Comments
muchclever
Member
Member
on

Good!TKS!