Writing TDMS Data Asynchronously
- Updated2025-08-15
- 1 minute(s) read
The following guideline describes how to write data to a .tdms file asynchronously.
- Use the TDMS Advanced Open function to open the .tdms file. Verify that the value of the enable asynchronous? is TRUE.
- Use the TDMS Set Channel Information function to set channel information for the raw data.
- (Recommended) Use the TDMS Reserve File Size function to pre-allocate disk space for writing.
- Use the TDMS Configure Asynchronous Writes function to configure settings and allocate buffers for asynchronous writes.
- Use the TDMS Advanced Asynchronous Write function to stream data that you acquired to the .tdms file.
- Use the TDMS Advanced Close function to close the .tdms file when the asynchronous writing process finishes.