Boolean下載 PDF選擇的小節所選的小節與子小節完整手冊已更新2025-07-30閱讀時間為 3 分鐘LabVIEWAPI 參考LabVIEW G Use the Boolean functions to perform logical operations on single Boolean values or arrays of Boolean values. And FunctionComputes the logical AND of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE, the function returns TRUE. Otherwise, it returns FALSE.Or FunctionComputes 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.Exclusive Or FunctionComputes 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.Not FunctionComputes the logical negation of the input. If x is FALSE, the function returns TRUE. If x is TRUE, the function returns FALSE.Compound Arithmetic VIPerforms arithmetic on one or more numeric, array, cluster, 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.Not And FunctionComputes 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 Or FunctionComputes 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.Not Exclusive Or FunctionComputes 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.Implies FunctionNegates x and then computes the logical OR of y and the negated x. Both inputs must be Boolean values, numeric values, or error clusters. If x is TRUE and y is FALSE, the function returns FALSE. Otherwise, it returns TRUE.And Array Elements FunctionReturns TRUE if all the elements in Boolean array are TRUE or if Boolean array is empty. 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.Or Array Elements FunctionReturns 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.True Constant VIUse this constant to provide a value of TRUE to the block diagram.False ConstantUse this constant to provide a value of FALSE to the block diagram.Number To Boolean Array FunctionConverts 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 representation of the integer.Boolean Array To Number FunctionConverts a Boolean array to an integer or a fixed-point number by interpreting the array as 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) FunctionConverts a Boolean FALSE or TRUE value to a 16-bit integer with a value of 0 or 1, respectively.Parent topic: Programming
Use the Boolean functions to perform logical operations on single Boolean values or arrays of Boolean values. And FunctionComputes the logical AND of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE, the function returns TRUE. Otherwise, it returns FALSE.Or FunctionComputes 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.Exclusive Or FunctionComputes 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.Not FunctionComputes the logical negation of the input. If x is FALSE, the function returns TRUE. If x is TRUE, the function returns FALSE.Compound Arithmetic VIPerforms arithmetic on one or more numeric, array, cluster, 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.Not And FunctionComputes 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 Or FunctionComputes 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.Not Exclusive Or FunctionComputes 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.Implies FunctionNegates x and then computes the logical OR of y and the negated x. Both inputs must be Boolean values, numeric values, or error clusters. If x is TRUE and y is FALSE, the function returns FALSE. Otherwise, it returns TRUE.And Array Elements FunctionReturns TRUE if all the elements in Boolean array are TRUE or if Boolean array is empty. 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.Or Array Elements FunctionReturns 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.True Constant VIUse this constant to provide a value of TRUE to the block diagram.False ConstantUse this constant to provide a value of FALSE to the block diagram.Number To Boolean Array FunctionConverts 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 representation of the integer.Boolean Array To Number FunctionConverts a Boolean array to an integer or a fixed-point number by interpreting the array as 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) FunctionConverts a Boolean FALSE or TRUE value to a 16-bit integer with a value of 0 or 1, respectively.Parent topic: Programming
Use the Boolean functions to perform logical operations on single Boolean values or arrays of Boolean values. And FunctionComputes the logical AND of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE, the function returns TRUE. Otherwise, it returns FALSE.Or FunctionComputes 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.Exclusive Or FunctionComputes 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.Not FunctionComputes the logical negation of the input. If x is FALSE, the function returns TRUE. If x is TRUE, the function returns FALSE.Compound Arithmetic VIPerforms arithmetic on one or more numeric, array, cluster, 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.Not And FunctionComputes 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 Or FunctionComputes 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.Not Exclusive Or FunctionComputes 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.Implies FunctionNegates x and then computes the logical OR of y and the negated x. Both inputs must be Boolean values, numeric values, or error clusters. If x is TRUE and y is FALSE, the function returns FALSE. Otherwise, it returns TRUE.And Array Elements FunctionReturns TRUE if all the elements in Boolean array are TRUE or if Boolean array is empty. 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.Or Array Elements FunctionReturns 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.True Constant VIUse this constant to provide a value of TRUE to the block diagram.False ConstantUse this constant to provide a value of FALSE to the block diagram.Number To Boolean Array FunctionConverts 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 representation of the integer.Boolean Array To Number FunctionConverts a Boolean array to an integer or a fixed-point number by interpreting the array as 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) FunctionConverts a Boolean FALSE or TRUE value to a 16-bit integer with a value of 0 or 1, respectively.Parent topic: Programming