Vector - Rotate
This function block will rotate the vector VX by n positions.
The elements of the vector are shifted upwards (n>0) or downwards (n<0) and elements shifted beyond the end of the vector will be inserted at the beginning. The result will be written back to VX.
Signals
Name | I/O | Type(s) | Function |
---|---|---|---|
VX | I/O | Data type independent | In-/output vector |
n | I | WORD | Number of positions to rotate |
Comments
The data type will be assigned by connecting the input vector.