Math Blocks > Add function block

Add function block execution

The number of inputs to the Add function block is an extensible parameter. The block default is two inputs. You add inputs by right-clicking the function block diagram, clicking Extensible Parameters, and modifying the number of inputs. This creates additional input connectors for the block.

The Add function block uses the following equation to calculate the output:



The following table shows an example of Add function block outputs based on different input values:

Table: Add function block calculation example

Parameter

Example 1

Example 2

IN1

1.0

1.5

IN2

3.7

2.5

IN3

0.2

IN4

3.1

OUT

4.7

7.3