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

TypeNameDefaultDescription
Integerk1+1Gain of upper input
Integerk2+1Gain of lower input

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.IntegerInputu1Connector of Integer input signal 1
Buildings.Controls.OBC.CDL.Interfaces.IntegerInputu2Connector of Integer input signal 2
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutputyConnector of Integer output signal

Revisions

  • January 3, 2017, by Michael Wetter:
    First implementation, based on the implementation of the Modelica Standard Library.