Example Code

Convert Hexidecimal String to U8 Array

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

Overview
This example shows how to convert an ASCII String representing hexidecimal characters to an U8 array of those byte values.

 

Description
This VI converts two hexidecimal characters (one byte maximum rapresentation) at time. If one or both of the characters in the byte is invalid it will be ignored by the Hexidecimal String to Number VI.


Requirement

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI

 

Additional Information or References

VI Block Diagram

 

Convert Hexidecimal String to U8 Array LV_2012_NI_Verified.png

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

Barron
Applications Engineering
National Instruments

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

Comments
risheeb
NI Employee (retired)
on

Simple but effective.