Hi
You are using "Replace Array Element" instead of "Insert Array Element" Function.
I changed the "Replace..." with "Insert..." in both your True and False Cases. Moved the resultant Array Inside the While Loop.
The Modified VI is attached.
Mache
Good Luck!
Mache