blockAdd
Output the sum of the two inputs
Extends from Interfaces.SI2SO (2 Single Input / 1 Single Output continuous control block).
Information
This blocks computes output y as sum of the two input signals u1 and u2:
y = k1*u1 + k2*u2;
Example:
parameter: k1= +2, k2= -3 results in the following equations: y = 2 * u1 - 3 * u2
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k1 | +1 | Gain of input signal 1 |
| Real | k2 | +1 | Gain of input signal 2 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u1 (from SI2SO) | Connector of Real input signal 1 | |
| RealInput | u2 (from SI2SO) | Connector of Real input signal 2 | |
| RealOutput | y (from SI2SO) | Connector of Real output signal |