LabVIEW Real-Time Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
gmr2017

Array Subset Using Array of Indexes

Status: New

We have large arrays in our applications and normally we want a subset of data that is not contiguous. To accomplish the task of retrieving values of various indexes we use a For Loop feeding in an array of indexes. We obtain a single value in each iteration of the array. Not very efficient!

 

Index Array is expandable at design time but we don't know how many values we need at design time.

 

It would be ideal if there was a native LabVIEW function that accepted an array of indexes and returned an array of values from a much larger array. Similar to the Array Subset function but the index input is an array of values not just a single value.