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)