I'm building an averaging function, and most of the components are working fine; I am successfully filling an array with your numbers to average X1, X2...Xn.
However, the last step, computing the average from an array of numbers, is not working.
My loop appears to only loop one cycle, and end prematurely.
So, instead of computing (X1 + X2 ... + Xn) / n, I'm getting X1 / n.
Attached is the pertinent page, if anyone would like to help.
P.S.
I'm building this, because the average filter function block, in the basic library from SDF only computes averages with 3 to 7 numbers, and numbers from 2 to 7.
TWO to SEVEN.
This is not even remotely useful for averaging numbers in a normal program, which will be many times larger.