You're making it way too complicated. You get dt from the Read Waveform function. You can then use the Build Waveform function to create a Waveform datatype that the Write LabVIEW Measurement File can handle. The Align and Resample is not necessary at all.
I put the change in the attached VI. I also cleaned up the upgly wiring.