LabWindows/CVI

TDMS_FlushFile

int TDMS_FlushFile (TDMSFileHandle file);

Purpose

Writes all buffers of the .tdms file data to the file identified by the tdms file handle.

Data written to a .tdms file often resides in a buffer until the buffer fills up or until you close the file. This function forces the operating system to write any buffer data to the .tdms file.

Parameters

Input
Name Type Description
file TDMSFileHandle The handle of the file to be flushed. You obtain this handle from the TDMS_OpenFileEx or TDMS_CreateFileEx function.

Return Value

Name Type Description
status int Return value indicating whether the function was successful. Unless otherwise stated, zero represents successful execution and a negative number represents the error code.

Error codes are defined in cvi\include\cvitdms.h.

Additional Information

Library: TDM Streaming Library

Include file: cvitdms.h

LabWindows/CVI compatibility: LabWindows/CVI 2019 and later

© 2016 National Instruments. All rights reserved.

Log in to get a better experience