Closes the .tdms file that you opened with the TDMS Advanced Open function and releases extra disk space that the TDMS Reserve File Size function reserves.


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.

  • cbool.png truncate file? (F)

    truncate file? specifies whether to truncate the .tdms file when closing this file. If the value is TRUE, this function truncates the file at the current writing position. If the value is FALSE, this function does not truncate the file and only releases extra disk space that the TDMS Reserve File Size function reserves. The default is FALSE.

  • cerrcodeclst.png error in (no error)

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

  • cdbl.png timeout (10 s)

    timeout specifies the maximum time, in seconds, that this function waits for pending asynchronous writes to complete before closing the .tdms file. If you do not wire data to the timeout input, this function sets the value to 10. This input is valid only if the enable asynchronous? input of the TDMS Advanced Open function is TRUE.

  • ipath.png file path out

    file path out returns the path of 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 Asynchronous Write.vi
    • labview\examples\File IO\TDMS\Advanced Read and Write\Asynchronous Read and Write\TDMS Advanced Basic Asynchronous Read.vi