Split 1D Array
Description
Divides array at index and returns the two portions with the element of index at the beginning of second subarray.
Warning : Two new tensors is created for the outputs.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). array : class, one-dimentional tensor.
index : integer, 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.
Output parameters
Documentation illustration (illustration unavailable in the archive). first subarray : class, contains array[0] through array[index-1].
Documentation illustration (illustration unavailable in the archive). second subarray : class, contains the remaining array elements not already contained in first subarray.
Examples
All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).
Documentation illustration (illustration unavailable in the archive).
