Example Code

Make MAC Address Readable 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 VI demonstrates how to change MAC address display mode from HEX to comma separated decimal.


Description

When you get the MAC address of a real-time controller it is encoded in a string. This appears as gobbledygook! You can change the display mode to hex and it appears closer to what we are used to. The attached VI will take this a step further and convert it to appear correctly in a normal string and use the separators we expect for MAC addresses (and you can change this).


Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Enter the HEX MAC address
  2. Run the code.

 

Additional Information or References 

VI Snippet

285.png

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

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/

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