The following guideline describes how to read data from 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 Configure Asynchronous Reads function to configure settings and allocate buffers for asynchronous reads.
  3. (Optional) Use the TDMS Set Next Read Position function to set the file position from which you want to start reading data.
  4. Use the TDMS Start Asynchronous Reads function to start reading data to the buffers.
  5. (Optional) Use the TDMS Get Asynchronous Read Status function to detect the number of buffers that contain available data.
  6. Use the TDMS Advanced Asynchronous Read function to read data from the buffers.
  7. (Optional) Use the TDMS Stop Asynchronous Reads function to stop reading data.
  8. Use the TDMS Advanced Close function to close the .tdms file when the asynchronous reading process finishes.