Vector - Addition of vectors

This function block will add two vectors.

Every element of input vector VX2 will be added to the appropriate element of VX1. The result will be available at VX1.

Both vectors have to have the same length; otherwise the download will be aborted with an error message.

Signals

Name I/O Type(s) Function
VX1 I/O UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE In-/output vector
VX2 I UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE Input vector

Visualization

If the two vectors differ in size, the function block will be depicted red when in run mode.

Comments

The data type will be assigned by connecting an input signal.