Michelle,
The time string appears to be resetting because you are calling the Export Waveform to Spreadsheet File in a loop. In each iteration of the loop, the VI writes the samples that it has read from the DAQmx Read to the file. The loop that you have added to the Export Waveform to Spreadsheet VI takes an initial value of zero and adds the dt increment. Since you are calling the VI multiple times and the initial value is zero, the time value is reset. Running the VI in Highlight Execution mode (the light bulb on the block diagram) may better help you visualize this.
There are two possible fixes to this.
1) You could wire the t0 value to the shift register rather than a constant 0.
2) You could create an input control for the initial time value and a corresponding time output value in the Export Waveform to Spreadsheet File VI. You would then pass this value using shift registers in the loop of your main program. This would effectively save the time value from the previous iteration of the loop.
Regards,
Chris Delvizis
National Instruments