Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Array Split / Replace Subarrays Border Node

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Structures

Requires: Base Development System

Split an array into subarrays along a dimension you specify and operate on the subarrays in place within the structure. Right-click the border of an In Place Element structure and select the Add Array Split / Replace Subarrays option from the shortcut menu to place this border node on the In Place Element structure.

Details  

array can be an n-dimensional array of any type.
split length specifies the length of the resulting subarray. Each split length results in an additional subarray. You must wire all or none of the split length inputs. If you do not wire any split length inputs, LabVIEW automatically determines the length of the resulting subarray.
subarray is an array that contains the number of elements you specify in split length. The border node always contains one fewer split length input than subarray outputs because LabVIEW populates the last subarray with remaining elements. If split length specifies more elements than array contains, subarray fills the remaining length with empty elements.
array is the array this border node returns with the replaced element(s), row(s), column(s), or page(s).
split length indicates the length of the resulting subarray.

Array Split / Replace Subarrays Details

This border node allows the LabVIEW compiler to avoid making a complete value copy of the array and array elements in memory.

Right-click this border node and select Split Dimension to specify in which dimension to split the array. For example, if you select 1 for a two-dimensional array, LabVIEW creates the subarrays from columns of the original array. If you select 0, LabVIEW creates the subarrays from rows of the original array.

If you wire more elements than are in the original array to the border node on the right side of the structure, LabVIEW truncates the elements to fit in the original memory space. If you wire fewer elements than are in the original array to the border node, LabVIEW adds additional array elements to fill the original memory space.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit