1D Array of Binary to Numeric Representation in LabVIEW

Prodotti e Ambiente

Questa sezione descrive i prodotti e il sistema operativo utilizzati per creare l'esempio.

Per scaricare il software NI, compresi i prodotti illustrati di seguito, visitare il sito ni.com/downloads.

    Software

  • LabVIEW

Codice e Documentazione

Allegato

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

Il codice di esempio scaricato dall'Example Code Exchange nella NI Community è concesso in licenza con la licenza MIT.

Commenti
crossrulz
Knight of NI Knight of NI
Knight of NI
su

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



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
su

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

Fabián M.
Internal Sales Engineer
National Instruments