LoggerGetGraphChannel


機能

YTウィンドウオプション - チャネルの状態を取得します。

書式

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

引数

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

LoggerOpenApplicationで取得したアプリケーションIDを指定します。

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

0固定となります。

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

シーケンス番号を指定します。

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

指定チャネルの表示状態を格納するアドレスを指定します。

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

指定チャネルのアクティブ状態を格納するアドレスを指定します。

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

ドット表示の状態を格納するアドレスを指定します。

戻り値

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

定義

戻り値

[Dec]

内容

LOGGER_ERR_SUCCESS

0

正常終了

LOGGER_ERR_INVALID_ID

10010

無効なAppIDが指定されました。

LOGGER_ERR_CHANNEL_NO

20003

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

その他のエラー(参照:エラーコード一覧)

初期値

特になし

説明

YTウィンドウオプション - チャネルの状態を取得します。

詳細は、「YTウィンドウオプション - チャネル」トピックを参照してください。

使用例

シーケンス0の「YTウィンドウオプション - チャネル」の状態を取得します。

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);

 

関連項目

LoggerSetGraphChannel