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 Activate As UShort Dim DisplayDot As UShort Ret = LoggerGetGraphChannel(AppId, 0, 0, ChannelEnable, Activate, DisplayDot)
|
C++ |
long Ret; unsigned short Activate; unsigned short DisplayDot; Ret = LoggerGetGraphChannel(AppId, 0, 0, &ChannelEnable, &Activate, &DisplayDot);
|
C# |
int Ret; ushort Activate; ushort DisplayDot; Ret = logger.GetGraphChannel(AppId, 0, 0, out ChannelEnable, out Activate, out DisplayDot);
|