05-06-2011 11:33 AM
Try this. You get a 100 long array that you average and it is displayed on a waveform graph.
Good luck,
Krivan
05-06-2011 09:32 PM
Thanks for your help, Krivan. But your program doesnot satisfy me.
Maybe you don't get my point. My data is online. So I want taking everage amount of samples. for examples, 1 to 10, 11 to 20, then 21 to 30; not show all the mean of 1 to 10, 2 to 11... in the output array as program of Nitzz or Krivan. Any suggestion, please let me know.
Thanks all!
05-07-2011 04:27 AM
The VI does take your average amount of samples, you mentioned 100 samples in the original post. The for loops generate a 100-long data set [1D array] for you from random numbers and then sends it off to averaging.
Now if you want 10 samples you modify the code accordingly. If your samples come from data acquisition devices, you might want to put the data acq into the for loop or modify the code.
If you want to display only a separate amount of data you use the Array Subset VI and send its output to a waveform graph.
In case it is still not what you want make a sketch to clarify.
05-07-2011 12:53 PM
Hi,
Sorry for keeping you waiting.. I have attached a VI which will do what you want. Not a neat code, but the logic is there which you need. kindly have a look.
Regards,
Nitzz
(Kudos are always Welcome, Mark as a solution if it is the One;))
05-07-2011 09:20 PM
@ Krivan: yeap, I got your point. Sorry for saying "your program doesnot satisfy me" Just because I am so stupid that I cannot understand your program.
@ Nitzz: Thanks again. Your program is great. It make sense to me. I think it work.
But I donot check with real data. Let me double check both programs.
Thanks guys. Thanks much!