LoggerSetAutoSave


Function

Set automatic save after or during data collection.

Format

Ret = LoggerSetAutoSave ( AppId , ExcelEnable , AutoSaveType , FolderPath )

Parameters

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

Specify Application ID retrieved by LoggerOpenApplication.

ExcelEnable [ VB.NET: UShort ] [ C++: unsigned short ] [ C#: ushort ]

Enables or disables Excel forwarding.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_DISABLE

Disable

1

LOGGER_PARAM_ENABLE

Enable

AutoSaveType [ VB.NET: UShort ] [ C++: unsigned short ] [ C#: ushort ]

Specify automatic saving.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_SAVE_NONE

None

1

LOGGER_PARAM_SAVE_CLB

clb

2

LOGGER_PARAM_SAVE_CSV

csv

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

Specify the folder in which to save the target data.

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_STARTED

10006

Cannot execute because the device is in operation.

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

LOGGER_ERR_AUTOSAVE_TYPE

20039

The data transfer enable/disable is outside the configurable range.

LOGGER_ERR_DATASAVE_ENABLE_EXCEL

20040

Enabling or disabling data transfer to Excel is outside the configurable range.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Set automatic save after or during data collection.

Example

Specify automatic saving to csv format after or during data collection.

VB.NET

Dim Ret As Integer

Ret = LoggerSetAutoSave(AppId, 1,LOGGER_PARAM_SAVE_CSV, "")

 

C++

long Ret;

Ret = LoggerSetAutoSave(AppId, 1, LOGGER_PARAM_SAVE_CSV, "");

 

C#

int Ret;

Ret = logger.SetAutoSave(AppId, 1, LOGGER_PARAM_SAVE_CSV, "");

 

See Also

LoggerGetAutoSave