I am trying to write a block, that finds the cumulative sum of the
But when i run the block on GRC, the output of the block becomes as in
the attached figure. It wraps for a period of time. I expect it to go
negatively downwards. Because i am accumulating negative values. I
couldn’t understand the reason. Is there something missing in the
code. The c++ code of the block is attached also.
Thanks for the help!