05-22-2018 04:01 AM - edited 05-22-2018 04:02 AM
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
05-22-2018 04:27 AM
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.
05-22-2018 07:05 AM
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.