0
Long-Term Fluid Level Averaging
Based on the IQAN Filter function documentation, it appears the standard Filter is intended for fast signal stabilization and its response depends on cycle time and filter percentage. For a fluid level application, we need to average the level over approximately 6 minutes to reduce false low-level readings while traveling on long ramps. Is the standard Filter function suitable for this kind of long averaging period, or would it be better to implement a custom moving average using sampled values stored in an array/buffer? For example, capturing one filtered level value every 72 seconds and averaging the last 5 samples to achieve an approximate 6-minute average.
Customer support service by UserEcho
For average values over long time like this you need to crate your own functions.
I would suggest having the raw input in to a average filter then storing that value in an array at a set interval.
For example an array with 10 size where you store the new value in the next slot each 36s and when it is full you start over again.
Then you can use a math channel to show the average value of the array to get your fuel level.
I made a small example of what i am talking about here.
Fule level avrage.idsx