TDMS Configure Asynchronous Reads Function

Owning Palette: TDMS Advanced Asynchronous I/O Functions

Requires: Base Development System (Windows)

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.

Note  Before using this function, ensure that no asynchronous reads are pending.

Examples

 Add to the block diagram  Find on the palette
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 specifies the number of buffers to allocate for asynchronous reads. The value must be greater than zero. The default is 4.
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 describes error conditions that occur before this node runs. This input provides standard error in functionality.
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:
  • Single-precision and double-precision floating-point numbers
  • Complex single-precision and double-precision floating-point numbers
  • Extended-precision floating-point numbers
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 returns a TDMS file reference to the .tdms file on which you performed the operation.
error out contains error information. This output provides standard error out functionality.

Examples

Refer to the following VIs for examples of using the TDMS Configure Asynchronous Reads function: