LoggerGetGraph


機能

YTウィンドウの状態を取得します。

書式

Ret = LoggerGetGraph ( AppId , WindowNo , TimeUnit , Digit , Area2Enable , YaxisMagnificationEnable , ChannelDispEnable , AutoScrollEnable )

引数

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

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

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

0固定となります。

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

T軸(絶対時間、相対時間)の状態を格納するアドレスを指定します。

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

目盛りの小数点以下表示桁数を格納するアドレスを指定します。

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

グラフウィンドウ分割表示の状態を格納するアドレスを指定します。

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

Y軸拡大率表示の状態を格納するアドレスを指定します。

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

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

AutoScrollEnable [ 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ウィンドウ」や「YTウィンドウオプション」トピックを参照してください。

使用例

YTウィンドウ」の状態を取得します。

VB.NET

Dim Ret As Integer
Dim TimeUnit As UShort

Dim Digit As UShort

Dim Area2Enable As UShort
Dim YaxisMagnificationEnable As UShort
Dim ChannelDispEnable As UShort
Dim AutoScrollEnable As UShort

Ret = LoggerGetGraph(AppId, 0, TimeUnit, Digit, Area2Enable, YaxisMagnificationEnable, ChannelDispEnable, AutoScrollEnable)

 

C++

long Ret;
unsigned short TimeUnit;

unsigned short Digit;

unsigned short Area2Enable;

unsigned short YaxisMagnificationEnable;

unsigned short ChannelDispEnable;

unsigned short AutoScrollEnable;

Ret = LoggerGetGraph(AppId, 0, &TimeUnit, &Digit, &Area2Enable, &YaxisMagnificationEnable, &ChannelDispEnable, &AutoScrollEnable);

 

C#

int Ret;
ushort TimeUnit;

ushort Digit;

ushort Area2Enable;

ushort YaxisMagnificationEnable;

ushort ChannelDispEnable;

ushort AutoScrollEnable;

Ret = logger.GetGraph(AppId, 0, out TimeUnit, out Digit, out Area2Enable, out YaxisMagnificationEnable, out ChannelDispEnable, out AutoScrollEnable);

 

関連項目

LoggerSetGraphYTウィンドウ」 「YTウィンドウオプション