Example Code

LabVIEW Utility VIs for Base64 and Base32Hex Encoding 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

Overview

This example can be used to convert (encode and decode) strings between ASCII, Base64, and Base32Hex encoding.

 

Description

Base64 encoding is commonly used for encoding passwords and attachments (MIME) in e-mail and other online communication.

Note that Base64 and Base32Hex encoding are not encryption and do not add any security to the information. It is intended to convert any string into a format that can be reliably transferred across any network. In that example, there is a "Main VI" that contains all the operations front panel.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible) 

 

Steps to Implement or Execute Code

1. Run VI.
2. Select which operation you want to handle and enter the input for converting it.

 

Additional Information or References

 

2012.PNG

 

Reference:

https://en.wikipedia.org/wiki/Base64

https://en.wikipedia.org/wiki/Base32

http://tomeko.net/online_tools/base64.php

 

 

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

 

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  

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