TDMS Get Asynchronous Read Status Function

Owning Palette: TDMS Advanced Asynchronous I/O Functions

Requires: Base Development System (Windows)

Retrieves the number of buffers that contain data available for the TDMS Advanced Asynchronous Read function to read.

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.
tdms file out returns a TDMS file reference to the .tdms file on which you performed the operation.
number of buffers available returns the number of buffers that contain data for the TDMS Advanced Asynchronous Read function to read.
all buffers full? indicates whether all the buffers are full of data for the TDMS Advanced Asynchronous Read function to read. This output also can be TRUE even when the number of buffers available output of this function is not equal to the number of buffers input of the TDMS Configure Asynchronous Reads function under the following conditions:
  • The TDMS Advanced Asynchronous Read function reaches the end of a .tdms file.
  • The TDMS Advanced Asynchronous Read function finishes reading the total count of data that you specify in the TDMS Start Asynchronous Reads function.
Tip  Use this Boolean value as one of the stop conditions for a While Loop. For example, you can put the TDMS Get Asynchronous Read Status function in the While Loop and wire the all buffers full? output to the Stop if True conditional terminal of the While Loop. You then can start asynchronous reads by using the TDMS Start Asynchronous Reads function and wait for the all buffers full? value to become TRUE. When this value becomes TRUE, you can use the TDMS Advanced Asynchronous Read function to read the data from the buffers.
error out contains error information. This output provides standard error out functionality.

Examples

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