Jump to content

Compound Arithmetic function: Difference between revisions

From LabVIEW Wiki
mNo edit summary
mNo edit summary
Line 13: Line 13:
* Add
* Add
* Multiply
* Multiply
* AND (see [[#Logical_And|Logical And]])
* AND (see [[And function|Logical And]])
* OR (see [[#Logical_Or|Logical Or]])
* OR (see [[Or function|Logical Or]])
* XOR (see [[#Exclusive_Or|Exclusive Or]])
* XOR (see [[Exclusive Or function|Exclusive Or]])


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.

Revision as of 19:42, 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.

Compound Arithmetic function

Usage

Change mode on the Compound Arithmetic function

Performs various logical and arithmetic operations on Boolean and numeric values for a dynamic amount of inputs.

Available operations:

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.

Invert input on the Compound Arithmetic function

Best practice

Tips and tricks

  • Wire an error cluster to perform logical operations on error conditions.


History

Version Change(s)
LabVIEW 2018 More info to come.

See Also


External Links