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

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

Connectors

TypeNameDefaultDescription
Interfaces.RealInputu1Connector of Real input signal 1
Interfaces.RealInputu2Connector of Real input signal 2
Interfaces.RealInputu3Connector of Real input signal 3
Interfaces.RealOutputyConnector of Real output signal