Owning Palette: Arithmetic & Comparison Express VIs
Use the Express Numeric functions to create and perform arithmetic and complex mathematical operations on numbers and to convert numbers from one data type to another. Use the VIs and functions on the Elementary & Special Functions palette to perform trigonometric and logarithmic functions.
You also can access the following constants from this palette:
| Palette Object | Description |
|---|---|
| Absolute Value | Returns the absolute value of the input. |
| Add | Computes the sum of the inputs. |
| 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. 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. |
| Decrement | Subtracts 1 from the input value. |
| Divide | Computes the quotient of the inputs. |
| Increment | Adds 1 to the input value. |
| Multiply | Returns the product of the inputs. |
| Negate | Negates the input value. |
| Numeric Constant | Use the numeric constant to pass a numeric value to the block diagram. Set this value by clicking inside the constant with the Operating tool and typing a value. |
| Random Number (0-1) | Produces a double-precision, floating-point number between 0 and 1. The number generated is greater than or equal to 0, but less than 1. The distribution is uniform. |
| Reciprocal | Divides 1 by the input value. |
| Round To Nearest | Rounds the input to the nearest integer. |
| Round Toward -Infinity | Truncates the input to the next lowest integer. |
| Round Toward +Infinity | Rounds the input to the next highest integer. |
| Scale By Power Of 2 | Multiplies x by 2 raised to the power of n. |
| Sign | Returns the sign of number. |
| Square Root | Computes the square root of the input value. |
| Square | Computes the square of the input value. |
| Subtract | Computes the difference of the inputs. |
| Subpalette | Description |
|---|---|
| Math & Scientific Constants | Use the Math & Scientific Constants to create LabVIEW applications. |
Refer to the labview\examples\general\structs.llb for examples of using the Express Numeric Functions.