You've got two options for saving to Excel. One is ActiveX. There's a shipping example called Write Table to Excel. NI also sells the
Report Generation Toolkit. The other method is to save your data in a text file that Excel can read. There is the function Write to Spreadsheet File on the File I/O palette that will do this.
I'm not sure while your loop doesn't stop. Do you have your Boolean control outside the while loop? It must be inside. If that's not it, post your code.