Example Code

1D Array of Binary to Numeric Representation in 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 examples converts 1D binary arrays of customizable dimensions to its numeric representation.

 

Description

This example takes 1D arrays filled with ones and ceros and converts them to boolean arrays so they can be converted to their numeric representation.

 

Requirements

  • LabVIEW 2013 (or compatible).

 

Steps to Implement or Execute Code

  1. Modify the binary array to have the number of bits needed.

  2. Manually fill the array.

  3. Run the VI.

 

Additional Information or References 

Main VI Block Diagram

capture.JPG 

 

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

Fabián M.
Internal Sales Engineer
National Instruments

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

Comments
crossrulz
Knight of NI Knight of NI
Knight of NI
on

The FOR loop isn't needed.  LabVIEW will do the Equals on the array with a scaler (comparing each element to the scaler).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
FmTesla
Member
Member
on

Actually you are right, I totally missed that. Thanks for the feedback.

Fabián M.
Internal Sales Engineer
National Instruments