04-18-2007 08:25 AM
04-22-2007 03:25 AM
Hey Casper,
Do the 1000 samples represent 500 X/Y pairs? How are the Voltage/Current values embedded in the data, and which (voltage or current) is on the X-axis of your chart? In this situation, will the bins have to be different "widths" in order to keep the same number of points in each [vertical] bin?
@budtz wrote:
Hi,Im using a USB-6009 to measure two voltages continuously at 22 kHz. The data is given to Labview by the DAQ in pieces of 1000 samples which constituate the X and Y data of an array (they are actually the probe voltage and current of a Langmuir probe). I wish to do some averaging to cancel out some of the noise, for instance, by binning the 1000 point data set to 100 points using 10-point mean averaging. How would I go about doing this? As far as I can see, the built in averaging routines of Labview only work on waveforms (X- and Y- versus time respectively), and cannot be applied on a (time independent) XY set.Regards,Casper
04-26-2007 03:57 AM
04-27-2007 12:05 AM - edited 04-27-2007 12:05 AM
Its not important for the bins to be the same size. What ever is easiest. What I want to do is to bin the X-axis down to, say, 100 data points to get rid of some of the noise present in the Y-axis (thus, each "bin" would represent the weighted average of ~10 (X,Y) pairs).
Up to here, I'm thinking we could calculate & plot the "centroid" of every 10 consecutive X values (once sorted on X).
... not that I really know how to calculate a centroid!
I imagine somethin along the line of creating equally sized bins on the X-axis and setting the Y-axis value of the bin Bn to a weighted average of the Y-values that fall into Bn
If you mean each bin might span the same range of current, what guarantee is there that any data-points will fall (or have fallen) into a particular current-range?
Cheers!
Message Edited by tbd on 04-27-2007 12:07 AM
04-29-2007 10:54 PM
Hey Casper,
In case you can (still) use it, I went ahead and implemented the "Centroid" binning described earlier.
Cheers!
05-07-2007 09:47 AM