Hi Slurpee,
I didn't run your code because you will face problems to get a stable dt. What you should do is open the file once and write to the reference. To do this you should write your 1d-array of dbls, not directly but use the array to spreadsheet string from the string palette. The outputted string can be written into the write string to file.vi.
Ton