LoggerSetDeviceName


Function

Set the device name.

Format

Ret = LoggerSetDeviceName ( AppId , DeviceName )

Parameters

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

Specify Application ID retrieved by LoggerOpenApplication.

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

Specify the device name.

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_DEVICENAME

10007

A device name isn't stored in DeviceName.

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

The others (See also: Error Code List)

Remarks

When setting the device name, please set a device that is supported by C-LOGGER (with analog input function).
Use the specified function until you select another device or drop the application.

Example

Set the device name "AIO000".

VB.NET

Dim Ret As Integer

Ret = LoggerSetDeviceName(AppId, "AIO000")

 

C++

long Ret;

Ret = LoggerSetDeviceName(AppId, "AIO000");

 

C#

int Ret;

Ret = logger.SetDeviceName(AppId, "AIO000");

 

See Also

LoggerGetDeviceName