blockAdd
Output the sum of the two inputs
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Information
Block that outputs y as the weighted sum of the
two Integer input signals u1 and u2,
y = k1*u1 + k2*u2;
where k1 and k2 are Integer parameters.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | k1 | +1 | Gain of upper input |
| Integer | k2 | +1 | Gain of lower input |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u1 | Connector of Integer input signal 1 | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u2 | Connector of Integer input signal 2 | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | y | Connector of Integer output signal |
Revisions
-
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.