Admin Production ni-theme
Current Publication

GetAxisRange

LabWindows/CVI

GetAxisRange

int GetAxisRange (int panelHandle, int controlID, int *xAxisScalingMode, double *xmin, double *xmax, int *yAxisScalingMode, double *ymin, double *ymax);

Purpose

Note Note  This function does not support the right y-axis and has been superseded by GetAxisScalingMode.

Obtains the scaling mode and the range of the x- and y-axes for a graph or strip chart control.

To obtain the x-offset and x-increment for a strip chart, use the ATTR_XAXIS_GAIN and ATTR_XAXIS_OFFSET attributes.

Supported Controls

You can use GetAxisRange with the following controls:

Parameters

Input
Name Type Description
panelHandle int Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel.
controlID int The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by functions such as NewCtrl and DuplicateCtrl.
Output
Name Type Description
xAxisScalingMode int Current scaling mode of the x-axis.

0L = VAL_MANUAL The x-axis is manually scaled, and xmin and xmax define its range.
1L = VAL_AUTOSCALE
(graphs only)
The x-axis is autoscaled. xmin and xmax are not returned. Autoscaling is not allowed for the x-axis of strip charts.
xmin double Current minimum range of the x-axis.
xmax double Current maximum range of the x-axis.
yAxisScalingMode int Current scaling mode of the y-axis.

0L = VAL_MANUAL The y-axis is manually scaled, and ymin and ymax define its range.
1L = VAL_AUTOSCALE
(graphs only)
The y-axis is autoscaled. ymin and ymax are not returned.
ymin double Current minimum range of the y-axis.
ymax double Current maximum range of the y-axis.

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later