LoggerGetGraph


Function

Get the status of the YT window.

Function

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

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.

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

Specify the address where the state of the T-axis (Absolute Time, Relative Time) is stored.

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

Specify the address that contains the number of decimal places to display for tick marks.

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

Specify the address that stores the state of the graph pane split view.

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

Specify the address for storing the status of the Y-axis magnification display.

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

Specify the address that stores the status of the channel name display.

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

Specify the address that contains the autoscrolling state of the graph.

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

Get the status of the YT window.

For more information about each item, see YT Window and YT Window Option topics.

Example

Get the status of YT Window.

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

 

See Also

LoggerSetGraph "YT Window" "YT Window Option"