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

TypeNameDefaultDescription
Realk1+1Gain of input signal 1
Realk2+1Gain of input signal 2

Connectors

TypeNameDefaultDescription
RealInputu1 (from SI2SO)Connector of Real input signal 1
RealInputu2 (from SI2SO)Connector of Real input signal 2
RealOutputy (from SI2SO)Connector of Real output signal