Reading TDMS Data Asynchronously
- Updated2026-07-27
- 1 minute(s) read
Read data asynchronously from a TDMS file with the advanced TDMS functions.
The following guideline describes how to read data from a .tdms file asynchronously.
- Use the TDMS Advanced Open function to open the .tdms file.
- Verify that the value of the enable asynchronous? input is TRUE.
-
Use the TDMS Configure Asynchronous Reads function to configure
settings and allocate buffers for asynchronous reads.
Note If you disable buffering when using the Advanced TDMS VIs and functions, the data size you read must be a multiple of the sector size of the hard disk.
- Optional: Use the TDMS Set Next Read Position function to set the file position from which you want to start reading data.
- Use the TDMS Start Asynchronous Reads function to start reading data to the buffers.
- Optional: Use the TDMS Get Asynchronous Read Status function to detect the number of buffers that contain available data.
- Use the TDMS Advanced Asynchronous Read function to read data from the buffers.
- Optional: Use the TDMS Stop Asynchronous Reads function to stop reading data.
- Use the TDMS Advanced Close function to close the .tdms file when the asynchronous reading process finishes.