For streaming applications as well as storing TDM files in real-time applications You should try the new TDM Header Writer VIs.
They allow You to use traditional LabVIEW functions to create a binary data file. Once the file has been created You only need to create an additional TDM Header file that describes Your binary file.
More information and a download you will find when You go to ni.com and search for "TDM Header Writer".
Thomas
.