LoggerExportSettingFile


Function

Save the condition settings.

Format

Ret = LoggerExportSettingFile ( AppId , FilePath )

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.

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 condition settings.
This function can be executed even if the device is in operation.

FilePath must end with ".clc".
Otherwise, LOGGER_ERR_FILEPATH (10002) is returned.

Example

Save the settings in "SettingFile.clc".

VB.NET

Dim Ret As Integer

Ret = LoggerExportSettingFile(AppId, "SettingFile.clc")

 

C++

long Ret;

Ret = LoggerExportSettingFile(AppId, "SettingFile.clc");

 

C#

int Ret;

Ret = logger.ExportSettingFile(AppId, "SettingFile.clc");

 

See Also

LoggerImportSettingFile