As mentioned previously, there are two file formats that map to the TDM data model: TDM and TDMS. Both map to the same data model so you can create well-organized and documented files with both file formats. However, unlike TDM files, which have a strictly required XML-based header file separate from the bulk data file, TDMS files have a single binary file that contains both the header and bulk data. TDMS files also automatically generate a TDMS_Index file that provides consolidated information on all the attributes and pointers in the bulk data file, and speeds up access to the data while reading.
You can use a number of interfaces to write TDM and TDMS files in LabVIEW. For writing TDM files, you can use the simple Write To Measurement File Express VI or, for more flexibility, you can use the Storage VIs. You can also read and write TDMS files using the Write To Measurement File Express VI, but, to achieve the best performance, use the primitive TDMS VIs from the File I/O palette. To learn more, read Writing TDM and TDMS Files in LabVIEW.
Figure 2. You can choose from several interfaces in LabVIEW to read and write TDM and TDMS files.
As mentioned previously, most NI software packages support reading and writing TDM and TDMS files. To learn more about how to achieve this in a specific ADE, visit one of these resources: