TDMS Advanced Asynchronous Read Function

Owning Palette: TDMS Advanced Asynchronous I/O Functions

Requires: Base Development System (Windows)

Reads the specified .tdms file and returns data in a format specified by the data type input. This function returns data that was previously read into the buffers configured in the TDMS Configure Asynchronous Reads function. This function can execute multiple asynchronous reads simultaneously in the background.

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.
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
tdms file out returns a TDMS file reference to the .tdms file on which you performed the operation.
data returns the data this function reads from the .tdms file in the specified data type.
error out contains error information. This output provides standard error out functionality.
read process finished? indicates whether the reading process is finished or not.
Tip  Use this Boolean value as one of the stop conditions for a While Loop. For example, you can place the TDMS Advanced Asynchronous Read function in the While Loop to read data indefinitely until the value of read process finished? returns TRUE. This value returns TRUE when one of the following conditions occurs:
  • The TDMS Advanced Asynchronous Read function reaches the end of a .tdms file.
  • The TDMS Advanced Asynchronous Read function finishes reading total count of data that you specify for the TDMS Start Asynchronous Reads function.

Examples

Refer to the following VIs for examples of using the TDMS Advanced Asynchronous Read function: