cbLogConvertFile()

Converts a binary log file to a comma-separated values (.CSV) text file or another text file format that you specify.

Function Prototype

C/C++

int cbLogConvertFile(char* srcFile, char* destFile, int startSample, int count, int delimiter)

Visual Basic

Function cbLogConvertFile(ByVal Filename$, ByVal DestFilename$, ByVal StartSample&, ByVal SampleCount&, ByVal Delimiter&) As Long

Arguments

srcFile

The name and path of the binary file to read.

destFile

The name and destination path of the converted file. Use the file extension of the file type that you want to create.

startSample

The index number of the first sample to read.

count

The number of samples to read.

delimiter

Specifies the character used between fields in the converted file. Set to one of the Delimiter constants. Choices are:

0 = DELIMITER_COMMA

1 = DELIMITER_SEMICOLON

2 = DELIMITER_SPACE

3 = DELIMITER_TAB

Returns

Notes