Rotate 1D Array function

From LabVIEW Wiki
Jump to: navigation, search
Rotate 1D Array function
Object information
Owning palette(s) Array palette
Type Function
Requires Basic Development Environment
Icon Rotate 1D Array.png

The Rotate 1D Array function takes a one-dimensional array and moves the start of the array by the number of elements specified, effectively "rotating" the array.

Usage

Connect a one-dimensional array at the array input terminal and specify the number of elements to move at n. The resulting array will contain all elements from the source array "rotated" by the number of elements specified.

Rotate 1D Array - Rotate Right.png

It is also possible to specify a negative value for n to "rotate" in the opposite direction.

Rotate 1D Array - Rotate Left.png

A value of zero results in a no-op which leaves the original array unchanged.

Rotate 1D Array - No-op.png

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links