LoggerGetGraphZoom


Function

Get the state of the graph zoom.

Function

Ret = LoggerGetGraphZoom ( AppId , WindowNo , Axis , Zoom )

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.

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

Specify the axis.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_AXIS_X

X Axis (T Axis)

1

LOGGER_PARAM_AXIS_Y

Y Axis

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

Specify the address where expansion or contraction settings should 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

Get the state of the graph zoom.

Example

Get the scaling of the graph along the y-axis.

VB.NET

Dim Ret As Integer
Dim Zoom As UShort

Ret = LoggerGetGraphZoom(AppId, 0, LOGGER_PARAM_AXIS_Y, Zoom)

 

C++

long Ret;
unsigned short Zoom;

Ret = LoggerGetGraphZoom(AppId, 0, LOGGER_PARAM_AXIS_Y, &Zoom);

 

C#

int Ret;
ushort Zoom;

Ret = logger.GetGraphZoom(AppId, 0, LOGGER_PARAM_AXIS_Y, out Zoom);

 

See Also

LoggerSetGraphZoom