Rotate 1D Array Function

Owning Palette: Array VIs and Functions

Requires: Base Development System

Rotates the elements of array the number of places and in the direction indicated by n.

The connector pane displays the default data types for this polymorphic function.

 Add to the block diagram  Find on the palette
n must be a numeric data type. The function coerces n to a 32-bit integer if you wire another representation to it.
array can be a 1D array of any type.
array (last n elements first) is the output array. For example, if n is 1, the input array[0] becomes output array[1], input array[1] becomes output array[2], and so on, and input array[m–1] becomes output array[0], where m is the number of elements in the array. If n is –2, input array[0] becomes output array[m–2], input array[1] becomes output array[m–1], and so on, and input array[m–1] becomes output array[m–3], where m is the number of elements in the array.