LoggerGetGraphLabelText


Function

YT Window Options - Get Overview status

Function

Ret = LoggerGetGraphLabelText ( AppId , WindowNo , TargetItem , TitleEnable , TitleText )

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.

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

Specify the target title.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_AXIS_X

X Axis (T Axis)

1

LOGGER_PARAM_AXIS_Y

Y Axis

2

LOGGER_PARAM_TITLE_GRAPH

Graph Title

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

Specify the address where the title display state is stored.

TitleText [ VB.NET: StringBuilder ] [ C++: char *] [ C#: out string ]

Specify the address where the title text will be stored.

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.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

YT Window Options - Get Overview status.

For more information, see YT Window Options - Overview topic.

Example

Get the state of the graph title.

VB.NET

Dim Ret As Integer
Dim TitleEnable As UShort

Dim TitleText As New StringBuilder("", 256)

Ret = LoggerGetGraphLabelText(AppId, 0, LOGGER_PARAM_TITLE_GRAPH, TitleEnable, TitleText)

 

C++

long Ret;
unsigned short TitleEnable;

char* TitleText[255];

Ret = LoggerGetGraphLabelText(AppId, 0, LOGGER_PARAM_TITLE_GRAPH, &TitleEnable, &TitleText[0]);

 

C#

int Ret;
ushort TitleEnable;

string TitleText;

Ret = logger.GetGraphLabelText(AppId, 0, LOGGER_PARAM_TITLE_GRAPH, out TitleEnable, out TitleText);

 

See Also

LoggerSetGraphLabelText "YT Window" "YT Window Options - Overview"