LoggerGetGraphChannel


Function

YT Window Options - Get channel status.

Function

Ret = LoggerGetGraphChannel ( AppId , WindowNo , SequenceNo , ChannelEnable , Activate , DisplayDot )

Parameters

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

Specify Application ID retrieved by LoggerOpenApplication.

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

It should be fixed to 0.

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

Specify the sequence No.

ChannelEnable [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address that stores the display state of the specified channel.

Activate [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address that stores the active state of the specified channel.

DisplayDot [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address where the dot display state is stored.

Return Value

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

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

LOGGER_ERR_CHANNEL_NO

20003

チャネル番号が設定可能範囲外です。

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

YT Window Options - Get channel status.

For more information, see YT Window Options - Channel topic.

Example

Get the state of YT Window Options - Channel for sequence 0.

VB.NET

Dim Ret As Integer
Dim ChannelEnable As UShort

Dim Activate As UShort

Dim DisplayDot As UShort

Ret = LoggerGetGraphChannel(AppId, 0, 0, ChannelEnable, Activate, DisplayDot)

 

C++

long Ret;
unsigned short ChannelEnable;

unsigned short Activate;

unsigned short DisplayDot;

Ret = LoggerGetGraphChannel(AppId, 0, 0, &ChannelEnable, &Activate, &DisplayDot);

 

C#

int Ret;
ushort ChannelEnable;

ushort Activate;

ushort DisplayDot;

Ret = logger.GetGraphChannel(AppId, 0, 0, out ChannelEnable, out Activate, out DisplayDot);

 

See Also

LoggerSetGraphChannel