10-24-2012 12:19 PM
Hey all,
Very new to LabView and dropped in the deep end. I have a DAQ outputting data at 10hz. I need to be able to average that dataset every second after filtering out values I do not want and the zero values also, before saving to file. Currently I am outputting the data, instructing it to zero the values outputting below 0.6 and above 1.8. From there I need to rempove the zeros, so to average the remaining values in each 1 second/10hz interval and output one value per second.
I have attached the file.
Thanks
10-24-2012 12:56 PM - edited 10-24-2012 12:57 PM
So you want ot average only the values between 0.6 and 1.8?
Well, we can go about this in 2 ways: build an array of data points to keep or delete the unwanted data points. It is probably easiest to build an array of points to keep. So here's what you should do. Use a FOR loop and autoindex the waveform array. Use the In Range and Coerce function to see if your current data point is within the range. If it is add to the array. The building of the array should be handled with a shift register.