Boolean Array To Number Function

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Boolean Functions

Requires: Base Development System

Converts a Boolean array to an integer or a fixed-point number by interpreting the array as the binary representation of the number. If the number is signed, LabVIEW interprets the array as the two's complement representation of the number. The first element of the array corresponds to the least significant bit in the number.

For example, if you wire an array of two Boolean values to this function and neither value is TRUE, the function returns a value of 0. If the first Boolean value is TRUE, the function returns 1. If the second Boolean value is TRUE, the function returns 2. If both Boolean values are TRUE, the function returns 3.


Boolean array is a one-dimensional array of Boolean values. This function truncates the Boolean array if it is too long and pads it with Boolean FALSE bits if the Boolean array is too short.
number is an integer or a fixed-point number.

Boolean Array To Number Details

You can override the default behavior of this function by changing the output settings. Right-click the function and select Properties from the shortcut menu to display the Properties dialog box. Use this dialog box to change the numeric representation of the output of the function.


Not Helpful