02-07-2006 04:35 PM
02-08-2006 01:47 PM
Hello jithendra,
Are you trying to average each of the sets of data you acquire? Or, are you averaging all of the data? If the first is what you are doing (I think this is the case), then it would be easier to use the array size and sum functions to perform your averaging instead of using a For Loop. Try this out. If you are still seeing problems with the averaging, can you please explain what the problem is?
Thanks!
Laura
02-08-2006 02:20 PM
02-08-2006 02:32 PM
hello Laura
thanks for the reply. what i am trying to do is, if i specify the number of averages as 10, then it has to acquire and add 10 1-D arrays of data (the length of each would be equal to the number of samples) and then divide the resultant array by 10. i have to do the averaging because the raw data is noisy and the waveform oscillates, so if i do averaging then i would get stable waveform.
My application is to acquire an analog signal from an Electromagnetic Induction Sensor, as the sensor is moved over a lane of around 100 m long. The acquisition should start on a analog trigger and continuously acquire data until i reach the end of the lane, and store the data in a file. I also want to do averaging to reduce the noise and stor the averaged data as well.
The trigger signal is a square wave, and the repetition rate of the signal is around 20 Hz (50 % duty cycle). I need to sample at around 50 kHz.
can u suggest me if the method i am using is correct or there is any other way of doin it.
thanks
jithendra
02-08-2006 05:00 PM
02-09-2006 09:07 AM
02-09-2006 03:16 PM
Hi jithendra,
I am glad to hear that the VI Kenny suggested worked out for you. Let us know if you run into any other problems.
Regards,
Laura