Split 1D Array Function

Divides array at index and returns the two portions with the element of index at the beginning of second subarray.

The connector pane displays the default data types.


icon

Inputs/Outputs

  • c1ddbl.png array

    array can be a 1D array of any type.

  • ci32.png index

    index must be numeric. If index is negative or 0, first subarray is empty.

    If index is equal to or greater than the size of array, second subarray is empty.
  • i1duvoid.png first subarray

    first subarray contains array[0] through array[index-1].

  • i1duvoid.png second subarray

    second subarray contains the remaining array elements not already contained in first subarray.

  • If the input array is empty, both output arrays are empty. This function does not generate an error if you pass in an empty array.

    FPGA Module Details

    The following details apply when you use this object in an FPGA VI.

    Note The following details are subject to change with each version of the LabVIEW FPGA Module.
    Single-Cycle Timed Loop Supported.
    Usage The LabVIEW FPGA Module supports only one-dimensional arrays that resolve to a single size at compile time. The index input must be constant so that LabVIEW can determine the size of the output array. You can either wire constant values directly to this function, or rely on value propagation through constant folding.
    Timing This function requires no clock cycles to execute because it does not include an internal register.
    Resources This function consumes no FPGA resources because it is purely a wiring operation.