LoggerStartOperation


Function

Start C-LOGGER to acquire data.

Format

Ret = LoggerStartOperation  ( AppId , status )

Parameters

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

Specify Application ID retrieved by LoggerOpenApplication.

Status [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]

Specify the address where the status is stored.

Value

[Dec]

Mcro Definition

Description

0

LOGGER_STATUS_SUCCESS

Normal completed

1

LOGGER_STATUS_EXCEL

An Excel transfer error occurred.

 

Return Value

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

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_DEVICE_START

10008

Operation start error occurred.

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

The others (See also: Error Code List)

Remarks

Use this function to start an operation based on the specified conditions.

This function cannot be used with devices that are not supported by C-LOGGER.

If the device is in operation, this function cannot be performed.

Example

Start the output of C-LOGGER.

VB.NET

Dim Ret As Integer
Dim status As UInterger

Ret = LoggerStartOperation (AppId, status)

 

C++

long  Ret;
unsiged long status;

Ret = LoggerStartOperation (AppId, status);

 

C#

int Ret;
uint status;

Ret = gen.StartOperation(AppId, status);

 

See Also

LoggerStopOperation