LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fluctuating flow.

Hi All,

 

I'm reading signal from high flow motor. Problem I am having is that value is fluctuating, thus my read flow for instance is between 50-60 l/min. I can't read steady value. 

 

Is there any solution how could I averaging reading value inside the while loop?

 

Thanks,

gregorian7 

0 Kudos
Message 1 of 3
(2,303 Views)

Looks like you're looking for Running Average

In that post you'll find an adequate solution. Basically, you write all values into an Array[n] and calculate the mean value of the array.



Remember Cunningham's Law
0 Kudos
Message 2 of 3
(2,293 Views)

or you could just use the point by point averaging vi. You could set how many samples you want to average and you are running. 

 

Example.png

Tim
GHSP
Message 3 of 3
(2,279 Views)