I'm glad that you are seeing success. Note, however, that you are not actually using the new TDMS logging feature of DAQmx at this point. What you are doing will work, but it might be easier with the feature.
If you downloaded DAQmx 9.1, you can simply pull up the DAQ Assistant to use the new feature (then select the "Logging" tab).
If you downloaded DAQmx 9.0.2, you can add the DAQmx Configure Logging VI to your program. The examples to look at are under HW I/O>>Measurements>>DAQmx>>Analog Input>>Voltage and they start with "TDMS Streaming - ...". Sorry for the misleading example that you looked at; unfortunately, it ships with LabVIEW, so we were not able to get rid of it with the introduction of the new TDMS feature.
Let me know if you have any additional questions.
Thanks,
Andy McRorie
NI R&D