TDMS Configure Asynchronous Writes (Data Ref) Function
- Updated2025-07-30
- 3 minute(s) read
Configures the maximum number of asynchronous writes and the timeout value. The timeout value applies to all subsequent asynchronous writes. You must use this function to configure the asynchronous writes before using the TDMS Advanced Asynchronous Write (Data Ref) 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.
max asynchronous writes (4)
—
max asynchronous writes specifies the maximum number of asynchronous writes that can run simultaneously in the background. After the number of pending asynchronous writes reaches the maximum value, the TDMS Advanced Asynchronous Write (Data Ref) function waits for a pending asynchronous write to complete before issuing another asynchronous write. The value must be greater than zero. The default is 4.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
timeout (5 s)
—
timeout specifies the timeout value, in seconds, for the TDMS Advanced Asynchronous Write (Data Ref) function. When the number of pending asynchronous writes reaches the maximum value, the TDMS Advanced Asynchronous Write (Data Ref) function waits as long as the timeout value for a pending asynchronous write to complete before issuing another asynchronous write. 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. |
tdms file
—
max asynchronous writes (4)
—
error in (no error)
—
timeout (5 s)
—
tdms file out
—
error out
—