Rotate 1D Array Function

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Array 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.

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.

WAS THIS ARTICLE HELPFUL?

Not Helpful