LoggerSetGraph


Function

Set the YT window.

Function

Ret = LoggerSetGraph ( 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#: ushort ]

Specify the T axis (Absolute Time, Relative Time).

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_AXISTYPE_ABSOLUTE

Absolute Time

1

LOGGER_PARAM_AXISTYPE_RELATIVE

Relative Time

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

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

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

Specify the graph window split view.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_DISABLE

Disable

1

LOGGER_PARAM_ENABLE

Enable

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

Specify the y-axis magnification display.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_DISABLE

Disable

1

LOGGER_PARAM_ENABLE

Enable

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

Specify the channel name display.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_DISABLE

Disable

1

LOGGER_PARAM_ENABLE

Enable

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

Specify automatic scrolling of the graph.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_DISABLE

Disable

1

LOGGER_PARAM_ENABLE

Enable

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_GRAPH_TIMEUNIT

22006

グラフウィンドウ時間軸が設定可能範囲外です。

LOGGER_ERR_GRAPH_DIGIT

22007

グラフウィンドウメモリ小数点が設定可能範囲外です。

LOGGER_ERR_GRAPH_SPLIT_ENABLE

22008

グラフウィンドウ分割表示有効無効が設定可能範囲外です。

LOGGER_ERR_GRAPH_MAGNIFICATIC_ENABLE

22009

グラフウィンドウY軸拡大率表示の有効無効が設定可能範囲外です。

LOGGER_ERR_GRAPH_CHANNELNAME_ENABLE

22010

グラフウィンドウチャネル名表示の有効無効が設定可能範囲外です。

LOGGER_ERR_GRAPH_AUTOSCROLL_ENABLE

22011

グラフウィンドウ自動スクロールの有効無効が設定可能範囲外です。

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Sets the YT window.

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

Example

Displays absolute time, without decimal point, without split display, without Y axis magnification, with channel name display, and with automatic screen.

VB.NET

Dim Ret As Integer

Ret = LoggerSetGraph(AppId, 0, LOGGER_PARAM_AXISTYPE_ABSOLUTE, 0, LOGGER_PARAM_DISABLE, LOGGER_PARAM_DISABLE, LOGGER_PARAM_ENABLE, LOGGER_PARAM_ENABLE)

 

C++

long Ret;

Ret = LoggerSetGraph(AppId, 0, LOGGER_PARAM_AXISTYPE_ABSOLUTE, 0, LOGGER_PARAM_DISABLE, LOGGER_PARAM_DISABLE, LOGGER_PARAM_ENABLE, LOGGER_PARAM_ENABLE);

 

C#

int Ret;

Ret = logger.SetGraph(AppId, 0, LOGGER_PARAM_AXISTYPE_ABSOLUTE, 0, LOGGER_PARAM_DISABLE, LOGGER_PARAM_DISABLE, LOGGER_PARAM_ENABLE, LOGGER_PARAM_ENABLE);

 

See Also

LoggerGetGraph "YT Window" "YT Window Option"