Sum

Description
Adds or subtracts multiple input signals.
$$ output = K_1 \cdot Input_1 + K_2 \cdot Input_2 + ... + K_n \cdot Input_n $$
Where K is the input gains vector and n is the number of inputs.
The number of inputs and each input sign are configured by the component parameters.
Library
Control > Math
Parameters
| Property | Display Name | Parameter Type | Description |
|---|---|---|---|
| NumberOfInputs | Number of Inputs | IntParameter | Number of Inputs |
| Gains | Input Gains | DoubleArrayParameter | Gains associated to each input (Ex: [+1 -1]) |
| SamplingTime | Sampling Time [s] | DoubleParameter | Sampling Time |
Pins
| Property | Pin Name | Type | Description |
|---|---|---|---|
| In1 | inputs[0] | ControlIn | Input 1 |
| In2 | inputs[1] | ControlIn | Input 2 |
| Out | Out | ControlOut | Output |
Default Size
| Width | Height |
|---|---|
| 4 | 4 |