TDMS Configure Asynchronous Reads Function
- Updated2025-07-30
- 3 minute(s) read
Allocates buffers and configures the timeout value for asynchronous reads. The timeout value applies to all subsequent asynchronous reads. You must use this function to configure the asynchronous reads before using the TDMS Advanced Asynchronous Read function.

Inputs/Outputs
tdms file
—
tdms file specifies a reference number to the .tdms file on which to perform the operation. Use the TDMS Advanced Open function to open the refnum.
number of buffers (4)
—
number of buffers specifies the number of buffers to allocate for asynchronous reads. The value must be greater than zero. The default is 4.
buffer size
—
buffer size specifies the buffer size in samples of data. If the disable buffering? input of the TDMS Advanced Open function is TRUE, the value of (buffer size * the length of data type) must be a multiple of the sector size.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
data type
—
data type specifies the type of data on which you want to perform the operation. This input accepts integers, floating-point numbers, Booleans, and timestamps. Note You can wire the following floating-point numbers to this input:
timeout (5 s)
—
timeout specifies the timeout value, in seconds, for the asynchronous read. If you do not wire data to this input, this function sets the value to 5.
tdms file out
—
tdms file out returns a TDMS file reference to the .tdms file on which you performed the operation.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\File IO\TDMS\Advanced Read and Write\Asynchronous Read and Write\TDMS Advanced Basic Asynchronous Read.vi
- labview\examples\File IO\TDMS\Advanced Read and Write\Asynchronous Read and Write\TDMS Advanced Prefetched Asynchronous Read.vi
tdms file
—
number of buffers (4)
—
error in (no error)
—
data type
—
timeout (5 s)
—
tdms file out
—
error out
—