LoggerSetMemoryOption


Function

Set memory options.

Format

Ret = LoggerSetMemoryOption ( AppId , MemorySize )

Parameters

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

Specify Application ID retrieved by LoggerOpenApplication.

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

Specify the memory size for holding C-LOGGER data.

The unit is 1 million [WORD].

Return Value

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

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_STARTED

10006

Cannot execute because the device is in operation.

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

LOGGER_ERR_MEMORYSIZE

20041

Memory size is outside the configurable range.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Set memory options.

For more information, see Memory Option topic.

Example

Set the memory size to 10 million [WORD].

VB.NET

Dim Ret As Integer

Ret = LoggerSetMemoryOption(AppId, 10)

 

C++

long Ret;

Ret = LoggerSetMemoryOption(AppId, 10);

 

C#

int Ret;

Ret = logger.SetMemoryOption(AppId, 10);

 

See Also

LoggerGetMemoryOption Memory Option