LoggerSaveDataFile


Function

Save the data file.

Format

Ret = LoggerSaveDataFile( AppId , FilePath , Param1 , Param2 )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

Specify Application ID retrieved by LoggerOpenApplication.

FilePath [ VB.NET: String] [ C++: char * ] [ C#: string]

Specify the file path.

 

Param1 [ VB.NET: Short ] [ C++: short ] [ C#: short ]

Reserved.

Param2 [ VB.NET: Short ] [ C++: short ] [ C#: short ]

Reserved.

Return Value

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_FILEPATH

10002

The setting file path is invalid.

LOGGER_ERR_FILETYPE

10003

The setting file type is invalid.

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

The others (See also: Error Code List)

Remarks

Save the data file.
The command for Save Acquired Data is selected.

FilePath must end with ".csv" or ".clb".
Otherwise, LOGGER_ERR_FILEPATH (10002) is returned.

Example

Only CH0 data will be saved.

VB.NET

Dim Ret As Integer

Ret = LoggerSaveDataFile(AppId, "DataFile.csv", 0, 0)

 

C++

long Ret;

Ret = LoggerSaveDataFile(AppId, "DataFile.csv", 0, 0);

 

C#

int Ret;

Ret = logger.SaveDataFile(AppId, "DataFile.csv", 0, 0);

 

See Also

None