04-13-2010 11:36 AM
Hello,
Please could you help me solve this issue?
I am acquiring a signal using data acquisition. I need to get the average of sets of the sampled data and output the result in a Chart waveform.
So for example I need to have the average of each 10 samples and then I need the output chart of the the averages vs time.
Thank you,
Bill
04-13-2010 12:23 PM
04-13-2010 12:26 PM
There is the express VI called Statistics and the Mean funciton on the Mathematics&Probability palette. With either, you would simply wire the output to a chart.
If you get stuck with using either of these functions, you need to attach your code so someone can see what you have done wrong.
04-13-2010 01:08 PM
Actually, I have a continuous stream of data. These data should be divided into sets of data. then these sets are averaged.
So, I have only ONE signal and not more. This signal is converted onto array then every set of data of this array is sampled.
Thanks in advance for your help,
Bill
04-13-2010 01:41 PM
04-13-2010 01:57 PM
Please find attached a piece of my code which is not working properly.
The data acquisition have 4 inputs. I am now using only one. This signal should be sampled and then I should take the average of the each set of samples.
* in this VI the output of the mean is the same as the actual output of the dynamic and continuous waveform.
Thank you
Bill
04-13-2010 02:54 PM
Hello,
I guess I found the problem. The initialize pin was true and that's why I was getting always the output of the mean the same as the individual values without taking the mean of the sets.
Now, please can you help me know how to control the initialize pin so it can be set to true after taking each sample of data?
Thank you,
Bill
04-13-2010 09:20 PM