Summator

| Vectorized | C |
in the palette on the schematic

The block is vectorized and implements the operation of algebraic element-by-element summation of input signals, taking into account the weight factors:

where y(t) is the output signal of the block; u1(t), u2(t), …, un(t) are the input signals; a1, a2, a3, …, an are the weight factors for each input signal of the block.

Inputs

  • term_n is the input port for one of the folded signals. The number of input ports is equal to the number (n) of elements of the weight factor vector in the block properties.

Outputs

  • sum - the output port for the summation result.

Properties:

  • Weight factors for each of the inputs – the vector of real numbers by which the values of the input signals of the block are multiplied. The number of input ports of the block is equal to the dimension of this array.
Input signals can be vectors u1=[u1 1, u1 2, …, u1 m], u2=[u2 1, u2 2, …, u2 m] … un=[un 1, un 2, …, un m], the dimensions of which must be the same. In this case, the output will also be a vector:
where yi(t) is the i-th element of the output vector signal of the block; u1 i(t), u2 i(t) is the i-th element of the first, second, etc. input signal.

Parameters

None

Прим.: By default, the block forms an output signal equal to the sum of the two input signals (two weight factors, and both of them are equal to 1). Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using a attachable signal database.