LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting or decimating a large 1D array

Hi,

 

I have a very large 1d array I need to decimate or sort. basically there are 102,400 elements. Every 1024 are from channel measurements of which 100 sample aquisitions take place making up 102,400 elements (first 1024 measures in the 1d array represent the first sample of which there are a 100 of them).

 

Decimate could work I assume with 100 elements but having some issues building the 1d back again. I would like to sort the 1024 channels 100 samples togethor because its easier to index the 1d array when I need to do averaging calculations.

 

Thanks for any help....Smiley Happy

0 Kudos
Message 1 of 3
(2,564 Views)

So are you having a problem coming up with a generic decimation algorithm? A simple one would be just a loop where you index out the specific multiple you want. Or, you could reshape the array and peel off the column you want. See attached example as a starting point.

Download All
Message 2 of 3
(2,556 Views)

thanks!

0 Kudos
Message 3 of 3
(2,470 Views)