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.


icon

Inputs/Outputs

  • cgnrn.png 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.

  • cu32.png 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.

  • cu32.png 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.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cu8.png 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:
    • Single-precision and double-precision floating-point numbers
    • Complex single-precision and double-precision floating-point numbers
    • Extended-precision floating-point numbers
  • cdbl.png 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.

  • ignrn.png tdms file out

    tdms file out returns a TDMS file reference to the .tdms file on which you performed the operation.

  • ierrcodeclst.png 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