LoggerImportSettingFile


Function

Load the condition settings.

Format

Ret = LoggerImportSettingFile ( 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 with file name which is for the condition settings.
An error may occur when the file name is invalided.

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

Open an existing file and load settings.
If the read device name does not exist, set the device before reading.
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

Load the settings of "SettingFile.clc".

VB.NET

Dim Ret As Integer

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

 

C++

long Ret;

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

 

C#

int Ret;

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

 

See Also

LoggerExportSettingFile