LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average each 10 samples

Hi,

 

I wonder how to get the average for each 10 samples.

I recive data by a serial connection (this works correctly) and I want the program to make the average of these samples every 10 samples.

How could I do it?

 

Thanks!

0 Kudos
Message 1 of 5
(3,123 Views)

Easiest would be the Mean ptbypt.

Message 2 of 5
(3,115 Views)

Here's another link for you to take a look at

http://forums.ni.com/t5/LabVIEW/Moving-average-filter/m-p/1994499/highlight/true#M657331

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,101 Views)

Thank you all!

0 Kudos
Message 4 of 5
(3,081 Views)

If you only need one avarage from 10 values there is also the decimation vi, that can do an avarage too.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 5
(3,068 Views)