PLUS+1 User Forum
PLUS+1 Software => Function Library => Topic started by: Keithang on March 15, 2016, 02:00:01 PM
-
Hi,
We are busy programing a Pressure sensor however we have erratic values being relayed into the controller which in turn causes our test to fail.
A solution would be to gather information for a certain amount of time, and use the average to set failure or pass value.
Is there a function block to log and work out an average?
Eg.
1 - 5
2 - 3
3 - 10
4 - 5
5 - 1
Average for above is 4.8 (Values (24)added and divided by log number (5)
-
Hi,
have you tried the average filters in the Filters functions library?
http://powersolutions.danfoss.com/products/plus-1-software/plus-1-function-block-library/ (http://powersolutions.danfoss.com/products/plus-1-software/plus-1-function-block-library/)
/Jakob
-
Hi,
Yes we have.
We have created our own function library to calculate the average and give a more stable and accurate reading. Readings match a Physical gauge.
-
Why didn't the Plus+1 average filter block work for you?
-
I came across a sample of a high pass filter. not so long ago. I thought to find it here. Did somebody deleted it or somebody knows where to find it. I was looking forward to try it. :(
-
Hello, I am new to Plus 1 programming, and need to do a similar task, is there any advice or maybe a screenshot on how to handle it?
Thank you very much!
-
Try the average filter function block, read up on the user manual this will explain in detail how it works.