Example Code

Return MAC Address of Remote PC

Code and Documents

Attachment

Download All

Overview

This example VI demonstrates the use of system exec.vi to list all MAC Addresses of remote PC's in ARP table. 

 

Description

Using sysexec and the command "arp -a" you can list all MAC Addresses of remote PC's in your ARP table, this VI then allows you to search by IP and get the corresponding IP address via string pattern matching.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI " Get MAC Address 2012 NIVerified.vi".
  2. Run the VI.

 

Additional Information or References
VI Snippet

Block Diagram.png

 

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

 

Applications Engineer

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