LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Taking average of real-time Data

Solved!
Go to solution

Try this. You get a 100 long array that you average and it is displayed on a waveform graph.

 

Good luck,

Krivan

Message 11 of 15
(2,505 Views)

Thanks for your help, Krivan.Smiley Happy But your program doesnot satisfy me.Smiley Sad 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. Smiley Sad
Thanks all!

0 Kudos
Message 12 of 15
(2,492 Views)

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.

Message 13 of 15
(2,476 Views)

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;))

Message 14 of 15
(2,469 Views)

@ 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!Smiley Very Happy

0 Kudos
Message 15 of 15
(2,460 Views)