Moving average block problem

Hi everyone!

Constantly using the moving average block, I have noticed that for long simulation times there is a problem that I can not solve.

After a while, the value of the media “resets” to negative or zero values and this creates problems in divisions or in the square roots block.

I tried to increase the initial buffer but the situation does not change. Something to change in the C-script of the mask? What can it be?

Some photos to explain the problem.

Thank you!

Hello,

Since this is a very specific question, you are encouraged to attach a model for others to better inspect the issue. If you are not able to post your model publicly, we would ask that you send it along with your question to support@plexim.com.

Kind regards,

Kris