LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data reduction

I want to read 16 channels 1000x per second but I just want to store the Max
Value of each Channel once in a minute. I tried to use the "Sample
Compression.Vi" but I dont think it is made for such a big reduction and i
am not sure if its fast enough.
0 Kudos
Message 1 of 3
(2,788 Views)
You could just do this with software. Use a running value to see what the greatest value read in each minute is. You are reading at 1KHz so you are taking 60K samples in one minute. Build your code so that, when you begin acquiring, you start checking to see if each subsequent value is greater than the next (use a shift register). Then, after 60000 samples, save this value and start over checking the next 60000 samples, and so on.
J.R. Allen
0 Kudos
Message 2 of 3
(2,788 Views)
If you save your data as a WAVEFORM ARRAY, then you can index the array, and use the Max/Min vi (in the waveform operations toolbox) to extract the max value (and time thereof, if desired) of each waveform. This is not the zippiest process in the world, but it should handle your data rates adequately.

Good Luck!

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 3 of 3
(2,788 Views)