03-28-2008 02:13 AM
HI Keshav,
I thinkI ve answered your query already. ![]()
Anyway, after getting your 1000 waveforms from your measuring device, bind them into an array, not 2D, just a 1D by using the Concatenate Inputs option of the Build Array function.
Then pass this array to the Mean VI or using Add Array Elements --> Divide by Array Size, you ll get the average of all those waveforms. ![]()
03-28-2008 03:17 AM - edited 03-28-2008 03:22 AM

03-28-2008 03:40 AM
03-28-2008 07:30 AM
03-28-2008 08:51 AM
like Lynn said, when trying to improve the signal to noise ratio by taking many samplings and simply adding them, it's crucial that they are in phase (unless we are talking about a signal that has a very low frequency compared to (half) the samplerate.
Is it possible to maybe include a dirac-pulse for triggering?
My suggestion, if I were to do this, would to use something else than LabVIEW...something that handles array operations like this with ease(Matlab would be my choice).
but if you want to use Labview, and you can implement the sync-pulse, then the basics would be to:
Locate the position of the pulse in all of your 1000 sets, trim or shift 999 of them to match the remaining (so the dirac ends up at the same index in all sets) and then add the arrays, element wise, to eachother and divide the result by 1000 to get the proper scalingfactor. This would suppress any noise you have in your signal a great deal and most likely achieve what you want. But the crucial part is to get them in sync.
-Anders
03-28-2008 09:01 AM
03-28-2008 09:06 AM
04-03-2008 11:50 AM
04-03-2008 02:03 PM
Mer wrote:
in the first cycle,1 and 0 are added and then divided by N=1 ..producing 1.In the 2nd cycle, 1 is added with 2 and then divided by N=2 to produce 1.5 .In the 3rd cycle, 1.5 is added with 3 and then divided by N=3 which gives the incorrect average of 1,2 and 3 ..please correct me if i have misunderstood your solution
04-03-2008 02:15 PM - edited 04-03-2008 02:16 PM
GerdW wrote:
Because: you want to have an array of the same length as your waveform - the easiest is to use one waveform and to subtract from itself...
All your waveforms have the same length (aka sample count)?
