LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

TDMS_ConvertFileFormat

TDMS_ConvertFileFormat

int TDMS_ConvertFileFormat (char *filePath, TDMSFileFormat newFileFormat);

Purpose

Converts the specified file to the specified file format. The converted file will overwrite the original file in the same location.

You might want to convert older files to a newer version of the file format to take advantage of new features in that version. You might want to convert newer files to an older version of the file format if you have legacy applications that only support the older version.

Parameters

Input
Name Type Description
filePath char * The path to the file that will be converted. If this value is not an absolute pathname, then the pathname is relative to the current working directory. The converted file will overwrite the original file in the same location.
newFileFormat TDMSFileFormat The new format of the specified file.

The 2.0 version of the TDM Streaming file format includes all features from version 1.0, as well as additional features.

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

© 2016 National Instruments. All rights reserved.

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit