Hello,
FILTER_MAV function works wrong if the values goes down.
ELSE
tmp := UINT_TO_INT(N);
i := INC1(i, tmp);
Y := Y + (X - buffer) / N;
buffer := X;
END_IF;
when buffer is bigger than X their difference going bellow 0 and become very large.
FILTER_MAV function works wrong if the values goes down.
ELSE
tmp := UINT_TO_INT(N);
i := INC1(i, tmp);
Y := Y + (X - buffer) / N;
buffer := X;
END_IF;
when buffer is bigger than X their difference going bellow 0 and become very large.