Interleave 1D Arrays function: Difference between revisions
Appearance
Add new page (stub) |
Add content |
||
| Line 1: | Line 1: | ||
[[File:Interleave 1D Arrays - Terminals.png|thumb|Interleave 1D Arrays function]] | [[File:Interleave 1D Arrays - Terminals.png|thumb|Interleave 1D Arrays 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}} | ||
The '''Interleave 1D Arrays''' function takes two or more one-dimensional arrays and "interleaves" them into a single array by indexing the source arrays vertically before horizontally (''take the first element of each source array, then take the second element of each source array, ...''). | |||
== Usage == | == Usage == | ||
Connect two one-dimensional arrays to the '''array''' input terminals. The resulting array will contain all elements from the source array "interleaved". | |||
[[File:Interleave 1D Array - Two Arrays.png]] | |||
Add more source arrays by dragging the upper or lower border of the function until the desired number of elements is reached. | |||
[[File:Interleave 1D Array - Three Arrays.png]] | |||
A single source array results in a [[Wikipedia:NOP_(code)|no-op]] in which the source array is returned unchanged. | |||
[[File:Interleave 1D Array - No-op.png]] | |||
[[Category:Array Palette]] | [[Category:Array Palette]] | ||
Revision as of 18:15, 19 November 2019

| Object information | |
|---|---|
| Owning palette(s) | Array palette |
| Type | Function |
| Requires | Basic Development Environment |
The Interleave 1D Arrays function takes two or more one-dimensional arrays and "interleaves" them into a single array by indexing the source arrays vertically before horizontally (take the first element of each source array, then take the second element of each source array, ...).
Usage
Connect two one-dimensional arrays to the array input terminals. The resulting array will contain all elements from the source array "interleaved".
Add more source arrays by dragging the upper or lower border of the function until the desired number of elements is reached.
A single source array results in a no-op in which the source array is returned unchanged.


