LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

TDMS_DefragmentFile

int TDMS_DefragmentFile (const char *filePath);

Purpose

Defragments a file on disk. Call this function to reorganize a file on disk so that all the data for each channel is located together. If a file is heavily fragmented then defragmenting the file will speed up read operations.

Parameters

Input
Name Type Description
filePath const char * The path to the file that will be defragmented. If this value is not an absolute pathname, then the pathname is relative to the current working directory.

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 8.1 and later

© 2016 National Instruments. All rights reserved.

Log in to get a better experience