Rotate 1D Array function: Difference between revisions
Appearance
Add new page (stub) |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[File:Rotate 1D Array - Terminals.png|thumb|Rotate 1D Array function]] | [[File:Rotate 1D Array - Terminals.png|thumb|Rotate 1D Array function]] | ||
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}} | {{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function|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. | |||
{{TOCright}} | |||
== Usage == | == 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. | |||
[[File:Rotate 1D Array - Rotate Right.png]] | |||
It is also possible to specify a negative value for '''n''' to "rotate" in the opposite direction. | |||
[[File:Rotate 1D Array - Rotate Left.png]] | |||
A value of zero results in a <u>[[Wikipedia:NOP_(code)|no-op]]</u> which leaves the original array unchanged. | |||
[[File:Rotate 1D Array - No-op.png]] | |||
== History == | == History == | ||
{{ambox|text=History information is needed. What changes have occurred over previous versions?}} | |||
{| class="wikitable" | |||
! Version | |||
! Change(s) | |||
|- | |||
|[[File:LV2018.png|frameless|border|64x64px|LabVIEW 2018|link=LabVIEW 2018]] | |||
|More info to come. | |||
|} | |||
== See Also == | |||
{{ambox|text=Add links to internal wiki pages that would also help.}} | |||
== | == External Links == | ||
{{ambox|text=Add links to external resources that would also help.}} | |||
[[Category:Array Palette]] | [[Category:Array Palette]] | ||
Latest revision as of 12:28, 29 June 2020

| Object information | |
|---|---|
| Owning palette(s) | Array palette |
| Type | Function |
| Requires | Basic Development Environment |
| Icon | |
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.
It is also possible to specify a negative value for n to "rotate" in the opposite direction.
A value of zero results in a no-op which leaves the original array unchanged.
History
| |
History information is needed. What changes have occurred over previous versions? |
| Version | Change(s) |
|---|---|
| More info to come. |
See Also
| |
Add links to internal wiki pages that would also help. |
External Links
| |
Add links to external resources that would also help. |


