blockVectorAdd
Output the sum of the two inputs
Extends from Modelica.Blocks.Interfaces.MI2MO (2 Multiple Input / Multiple 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 |
|---|---|---|---|
| Integer | n (from MI2MO) | 1 | Dimension of input and output vectors. |
| Real | k1 | +1 | Gain of upper input |
| Real | k2 | +1 | Gain of lower input |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput[n] | u1 (from MI2MO) | Connector 1 of Real input signals | |
| RealInput[n] | u2 (from MI2MO) | Connector 2 of Real input signals | |
| RealOutput[n] | y (from MI2MO) | Connector of Real output signals |