Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Boolean Array To Number

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Converts a Boolean array to a 32-bit unsigned integer by interpreting the array as the two's complement of the binary representation of an integer, with the first element of the array being the least significant bit.

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.

Details  

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 a 32-bit unsigned integer.

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 Numeric Node Properties dialog box. Use this dialog box to change the numeric representation of the output of the function.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit