Jump to content

Compound Arithmetic function: Difference between revisions

From LabVIEW Wiki
Add tips and tricks
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{stub}}
{{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.
[[File:Compound Arithmetic - Terminals.png|thumb|Compound Arithmetic function]]
[[File:Compound Arithmetic - Terminals.png|thumb|Compound Arithmetic function]]
 
{{TOCright}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Boolean{{!}}Boolean palette|type=function}}
 
== Usage ==
== Usage ==


Line 12: Line 11:
'''Available operations''':
'''Available operations''':


* Add
* Add (see [[Add function]])
* Multiply
* Multiply (see [[Multiply function]])
* AND (see [[#Logical_And|Logical And]])
* AND (see [[And function]])
* OR (see [[#Logical_Or|Logical Or]])
* OR (see [[Or function]])
* XOR (see [[#Exclusive_Or|Exclusive Or]])
* 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.
Line 22: Line 21:
'''Invert input and output''':
'''Invert input and output''':


The Compound Arithmetic function allows to invert any of the inputs as well as the output selectively.
The Compound Arithmetic function allows us to invert any of the inputs as well as the output selectively.


[[File:CompoundArithmeticInvertInput.png|frameless|border|Invert input on the Compound Arithmetic function]]
[[File:CompoundArithmeticInvertInput.png|frameless|border|Invert input on the Compound Arithmetic function]]
Line 30: Line 29:
== Tips and tricks ==
== Tips and tricks ==
* Wire an error cluster to perform logical operations on error conditions.
* Wire an error cluster to perform logical operations on error conditions.


== History ==
== History ==
{{ambox|text=History information is needed.  What changes have occurred over previous versions?}}
{| class="wikitable"
! Version
! Change(s)
|-
|[[File:LV2018.png|frameless|border|64x64px|LabVIEW 2018|link=LabVIEW 2018]]
|More info to come.
|}
== See Also ==
* [[And function]]
* [[Or function]]
* [[Exclusive Or function]]
* [[Add function]]
* [[Multiply function]]


== See also ==


== External links ==
== External Links ==
{{ambox|text=Add links to external resources that would also help.}}


[[Category:Boolean Palette]]
[[Category:Boolean Palette]]

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.

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