LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding present samples with past samples

hey !
my problem is that i want to take the average of 250 samples.
now how can i add present samples with past one so that i can divide it by 250 in the end .
thnks in advance.

0 Kudos
Message 1 of 3
(2,482 Views)
If you have a numerical array and want to take the sum of all its elements use "Add Array Elements" function located in the numerical palette.

If you're able to control the array during it's creation, use a Shift Register for the sum.
0 Kudos
Message 2 of 3
(2,478 Views)
Also check this thread:

http://forums.ni.com/ni/board/message?board.id=170&message.id=246094

It covers what you want to do, giving several different approaches...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,469 Views)