LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetable, Adjustable, Running Average

I have a loop that is spitting out a single number each time.  I need to be able to take a running average of the value.  That is easy with a while loop and shift registers but what I need is to be able to reset it and also change the number of averages.  So when the operator says he wants some unknown amount of averaging the loop starts and with each iteration it gives me an output of the average so far and then when the full number of averages is reached it resets and starts again.

0 Kudos
Message 1 of 6
(2,900 Views)

This should give you some ideas to get started. It uses the loop "i" as the data values.

 

Lynn

0 Kudos
Message 2 of 6
(2,890 Views)
Isn't there a pt-by-pt VI that does exactly this?

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 6
(2,875 Views)

@mikeporter wrote:
Isn't there a pt-by-pt VI that does exactly this?

Mike...

Like Mean PtByPt?


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 4 of 6
(2,847 Views)
Yeah, that's the one.

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 5 of 6
(2,835 Views)

Morning and thanks for the feedback.  I had already searched the forums and tried that pt-to-pt vi and did not get the results I wanted.  I will mock it up again when I get a chance.  I don't remember what it was not doing from my requirements but will pass it on when I do.

0 Kudos
Message 6 of 6
(2,771 Views)