The following guideline describes how to write data to a .tdms file asynchronously.

  1. Use the TDMS Advanced Open function to open the .tdms file. Verify that the value of the enable asynchronous? is TRUE.
  2. Use the TDMS Set Channel Information function to set channel information for the raw data.
  3. (Recommended) Use the TDMS Reserve File Size function to pre-allocate disk space for writing.
  4. Use the TDMS Configure Asynchronous Writes function to configure settings and allocate buffers for asynchronous writes.
  5. Use the TDMS Advanced Asynchronous Write function to stream data that you acquired to the .tdms file.
  6. Use the TDMS Advanced Close function to close the .tdms file when the asynchronous writing process finishes.