ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

decimate without eliminating data

I like how the 'Decimate 1D Array' function works in that it does not eliminate any data. However, I would like to be able to programmatically choose the decimation factor. When I use 'Decimate' from Analyze\Signal Processing\Time Domain, I can choose the decimation factor but data is eliminated.

Is there a simple solution for choosing the decimation factor while still retaining all the data?

Thanks,
Michelle
0 Kudos
Message 1 of 4
(2,854 Views)
You could simply reshape your size N 1D array into a "N/x by x" 2D array. Each row will then represent one of the decimated arrays that you can slice out as needed.

Let me know if this is clear enough.
Message 2 of 4
(2,850 Views)
Sorry, should have said each column represents one of the decimated arrays.
Message 3 of 4
(2,844 Views)
A beautiful solution. I had completely forgotten about the reshape VI! Thanks for your help!
0 Kudos
Message 4 of 4
(2,829 Views)