LoggerSetGraphZoom


Function

Set the graph zoom.

Function

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

Specify whether expansion or contraction.

Value

[Dec]

Macro

Description

0

LOGGER_PARAM_ZOOM_IN

Zoom-in (twice)

1

LOGGER_PARAM_ZOOM_OUT

Zoom-out (1/2 times)

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_AXIS

22001

Graph window axis is out of the configurable range.

LOGGER_ERR_GRAPH_ZOOM

22002

Graph window expansion direction is out of the configurable range.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Set the graph zoom.

Example

Zoom in on the graph along the Y axis.

VB.NET

Dim Ret As Integer

Ret = LoggerSetGraphZoom(AppId, 0, LOGGER_PARAM_AXIS_Y, LOGGER_PARAM_ZOOM_IN)

 

C++

long Ret;

Ret = LoggerSetGraphZoom(AppId, 0, LOGGER_PARAM_AXIS_Y, LOGGER_PARAM_ZOOM_IN);

 

C#

int Ret;

Ret = logger.SetGraphZoom(AppId, 0, LOGGER_PARAM_AXIS_Y, LOGGER_PARAM_ZOOM_IN);

 

See Also

LoggerGetGraphZoom