First:
Your code is broken (none of the stop conditions of the while loops are connected).
Second:
You need to understand LabVIEW code better, the inner while loop will prevent the outer while loop to finish it's iteration. Try to run the code with Execution Highlighting (the light bulb) to see what's happening (debug).
Try to go over the tutorials in LabVIEW to get the hang of the LabVIEW language.
One solution could be to move the inner loop out the outer loop, but that depends on your requirements.