Reading TDMS Data Asynchronously
- Updated2025-08-15
- 1 minute(s) read
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? is TRUE.
- Use the TDMS Configure Asynchronous Reads function to configure settings and allocate buffers for asynchronous reads.
- (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.