Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Boolean Functions

LabVIEW 2013 FPGA IP Builder Help

Edition Date: June 2013

Part Number: 373567C-01

»View Product Info
Download Help (Windows Only)

Owning Palette: FPGA IP Builder Functions

Requires: FPGA IP Builder. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Boolean functions to perform logical operations on single Boolean values or arrays of Boolean values.

Note  This palette is specific to the FPGA IP Builder and contains a subset of the VIs and functions that are on this palette when you edit a host VI.

Refer to the Boolean Palette Details topic for information about restrictions related to the objects on this palette.

Palette Object Description
And Computes the logical AND of the inputs. Both inputs must be Boolean or numeric values. If both inputs are TRUE, the function returns TRUE. Otherwise, it returns FALSE.
Boolean Array To Number 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 of the binary representation of the number. The first element of the array corresponds to the least significant bit in the number.
Boolean To (0,1) Converts a Boolean FALSE or TRUE value to a 16-bit integer with a value of 0 or 1, respectively.
Compound Arithmetic Performs arithmetic on one or more numeric or Boolean inputs. To select the operation (Add, Multiply, AND, OR, or XOR), right-click the function and select Change Mode from the shortcut menu. When you select this function from the Numeric palette, the default mode is Add. When you select this function from the Boolean palette, the default mode is OR.
Exclusive Or Computes the logical exclusive or (XOR) of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE or both inputs are FALSE, the function returns FALSE. Otherwise, it returns TRUE.
False Constant Use this constant to provide a value of FALSE to the block diagram.
Not Computes the logical negation of the input. If x is FALSE, the function returns TRUE. If x is TRUE, the function returns FALSE.
Not And Computes the logical NAND of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE, the function returns FALSE. Otherwise, it returns TRUE.
Not Exclusive Or Computes the logical negation of the logical exclusive or (XOR) of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE or both inputs are FALSE, the function returns TRUE. Otherwise, it returns FALSE.
Not Or Computes the logical NOR of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are FALSE, the function returns TRUE. Otherwise, it returns FALSE.
Number To Boolean Array Converts an integer or fixed-point number to a Boolean array. If you wire an integer to number, Boolean array returns an array of 8, 16, 32, or 64 elements, depending on the number of bits in the integer. If you wire a fixed-point number to number, the size of the array that Boolean array returns equals the word length of the fixed-point number. The 0th element of the array corresponds to the least significant bit of the two's complement of the binary representation of the integer.
Or Computes the logical OR of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are FALSE, the function returns FALSE. Otherwise, it returns TRUE.
True Constant Use this constant to provide a value of TRUE to the block diagram.

 

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