You did not use a feedback node, thus the broken wire. Also you should append to the end and not to the beginning of the existing array (for performance reasons).
I don't see a toplevel while loop. Are you using continuous run(don't!!)? Are you calling this as a subVI? It would be so much easier to attach a VI instead of a picture. Please do so.