LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average

Solved!
Go to solution

Good point Altenbach, Slipped my mind.

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 11 of 14
(1,613 Views)
Solution
Accepted by salahnajm

Hi Sal,

 

As Altenbach pointed out my example was incomplete, below is a complete example:

 

Running average ex 2.png

 

The first part calculates the average of the current data set, it then adds this to the ptbypt mean vi that calculates the running average. Better to do it this way rather then dividing by a set number in case you decide to change the amount of data you read at a time.

 

Hope this works.

 

Regards,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Message 12 of 14
(1,611 Views)

Or just take the regular mean before the ptbypt version. 😄

 

 

 

 

Message 13 of 14
(1,600 Views)
good!
0 Kudos
Message 14 of 14
(1,422 Views)