Hi again,
Finally I saw the VI correctly (my LV mess up the block diagram).
One solution is to add another shift register to the main loop and wire the output of your s.r. to it (also 0 for initialization).
Another idea is to use a local variable. Also you can use a case and the main counter as input (if it's 0 add 0 / otherwise add s.r. value)
Let me know if still have problems.
p.s.: I attached a picture of the VI because I cannot save it for 4.0