blockVectorAdd

Output the sum of the two inputs

Extends from Modelica.Blocks.Interfaces.MI2MO (2 Multiple Input / Multiple 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
Integern (from MI2MO)1Dimension of input and output vectors.
Realk1+1Gain of upper input
Realk2+1Gain of lower input

Connectors

TypeNameDefaultDescription
RealInput[n]u1 (from MI2MO)Connector 1 of Real input signals
RealInput[n]u2 (from MI2MO)Connector 2 of Real input signals
RealOutput[n]y (from MI2MO)Connector of Real output signals