Compound Arithmetic function: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Boolean{{!}}Boolean palette|palette2=Functions Palette/Programming/Numeric{{!}}Numeric palette|type=function|icon=Comparit.png}} | |||
The '''Compound Arithmetic''' function performs 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 [[Functions Palette/Programming/Numeric|Numeric palette]], the default mode is Add. When you select this function from the [[Functions Palette/Programming/Boolean|Boolean palette]], the default mode is OR. | The '''Compound Arithmetic''' function performs 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 [[Functions Palette/Programming/Numeric|Numeric palette]], the default mode is Add. When you select this function from the [[Functions Palette/Programming/Boolean|Boolean palette]], the default mode is OR. | ||
[[File:Compound Arithmetic - Terminals.png|thumb|Compound Arithmetic function]] | [[File:Compound Arithmetic - Terminals.png|thumb|Compound Arithmetic function]] | ||
{{TOCright}} | {{TOCright}} | ||
| Line 11: | Line 11: | ||
'''Available operations''': | '''Available operations''': | ||
* Add | * Add (see [[Add function]]) | ||
* Multiply | * Multiply (see [[Multiply function]]) | ||
* AND (see [[ | * AND (see [[And function]]) | ||
* OR (see [[ | * OR (see [[Or function]]) | ||
* XOR (see [[ | * XOR (see [[Exclusive Or function]]) | ||
This function is especially useful when doing logical and arithmetic operations on more than two input values. | This function is especially useful when doing logical and arithmetic operations on more than two input values. | ||
Latest revision as of 19:43, 13 July 2020
| Object information | |
|---|---|
| Owning palette(s) | Boolean palette | Numeric palette |
| Type | Function |
| Requires | Basic Development Environment |
| Icon | |
The Compound Arithmetic function performs 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.

Usage

Performs various logical and arithmetic operations on Boolean and numeric values for a dynamic amount of inputs.
Available operations:
- Add (see Add function)
- Multiply (see Multiply function)
- AND (see And function)
- OR (see Or function)
- XOR (see Exclusive Or function)
This function is especially useful when doing logical and arithmetic operations on more than two input values.
Invert input and output:
The Compound Arithmetic function allows us to invert any of the inputs as well as the output selectively.
Best practice
Tips and tricks
- Wire an error cluster to perform logical operations on error conditions.
History
| |
History information is needed. What changes have occurred over previous versions? |
| Version | Change(s) |
|---|---|
| More info to come. |
See Also
External Links
| |
Add links to external resources that would also help. |
