labview 2013 version is attached.
you can write to TDMS yourself of course, but i wanted to show the idea crossrulez has mentioned - using the DAQmx Logging.
i would suggest you build prototypes, that only handle one aspect, like TDMS, another for DAQmx-Tasks.
only after you have every component working in your prototypes, you start inegrating them into a state-machine or producer-consumer pattern.
If Tetris has taught me anything, it's errors pile up and accomplishments disappear.