GetAxisRange
int GetAxisRange (int panelHandle, int controlID, int *xAxisScalingMode, double *xmin, double *xmax, int *yAxisScalingMode, double *ymin, double *ymax);
Purpose
![]() |
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.
|
||||
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.
|
||||
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