Use the Boolean functions to perform logical operations on single Boolean values or arrays of Boolean values.
When you use the Boolean to Array function in an FPGA VI, the function converts fixed-size arrays to use the smallest unsigned representation that will fit the array size. When you use the Boolean to Array function in a Windows VI, the function converts a Boolean array to a 32-bit unsigned integer.
![]() | Note This palette is specific to FPGA targets and contains a subset of the VIs and functions that are on this palette when you edit a Windows or RT target VI. |
| Palette Object | Description |
|---|---|
| And Array Elements | Returns TRUE if all the elements in Boolean array are TRUE. This function also returns TRUE if Boolean array is empty because TRUE is the identity for the Boolean AND operation. Otherwise, the function returns FALSE. This function accepts an array of any size but returns only a single value based on all values in Boolean array. |
| 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 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. |
| 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, array, cluster, or Boolean inputs. Select the operation (Add, Multiply, AND, OR, or XOR) by right-clicking the function and selecting Change Mode from the shortcut menu. The default mode depends on the palette from which you drop this function. |
| Exclusive Or | Computes the logical exclusive or (XOR) of the inputs. Both inputs must be Boolean or numeric values. 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. |
| Implies | Negates x and then computes the logical OR of y and the negated x. Both inputs must be Boolean or numeric values. If x is TRUE and y is FALSE, the function returns FALSE. Otherwise, it returns TRUE. |
| Not And | Computes the logical NAND of the inputs. Both inputs must be Boolean or numeric values. 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 or numeric values. 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 or numeric values. If both inputs are FALSE, the function returns TRUE. Otherwise, it returns FALSE. |
| Not | Computes the logical negation of the input. If x is FALSE, the function returns TRUE. If x is TRUE, the function returns FALSE. |
| Number To Boolean Array | Converts an integer to a Boolean array of 8, 16, or 32 elements, depending on the number of bits in the integer. 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 Array Elements | Returns FALSE if all the elements in Boolean array are FALSE or if Boolean array is empty. Otherwise, the function returns TRUE. This function accepts an array of any size but returns only a single value based on all values in Boolean array. |
| Or | Computes the logical OR of the inputs. Both inputs must be Boolean or numeric values. 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. |