Example Code

Get MAC from IP - "IT friendly" 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

Very simple and "IT friendly" routine to acquire MAC address of the network device.


Description
Ping the IP to judge if the IP is accessible at first. If the CMD feedback ping time out, output the timeout signal. Then get the MAC by CMD commander and out put the MAC in a standard format.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Input an IP accessible.
  • Run the program

 

Additional Information or References
VI Snippet

3-383.png

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

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