blockAdd3
Output the sum of the three inputs
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This blocks computes output y as sum of the three input signals u1, u2 and u3:
y = k1*u1 + k2*u2 + k3*u3;
Example:
parameter: k1= +2, k2= -3, k3=1; results in the following equations: y = 2 * u1 - 3 * u2 + u3;
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k1 | +1 | Gain of input signal 1 |
| Real | k2 | +1 | Gain of input signal 2 |
| Real | k3 | +1 | Gain of input signal 3 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.RealInput | u1 | Connector of Real input signal 1 | |
| Interfaces.RealInput | u2 | Connector of Real input signal 2 | |
| Interfaces.RealInput | u3 | Connector of Real input signal 3 | |
| Interfaces.RealOutput | y | Connector of Real output signal |