LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed Scale in X and Y Axis

I have a number of data which is the range is too wide. For example, the Y axis data is 1,2,4,1000, 5000, 9999, if i plotting based on the scale, i might not see the different between 1,2,4. it is possible that fix the scale for y axis and even x-axis also?
0 Kudos
Message 1 of 3
(3,255 Views)
Axis scales can be set both in the UIR editor and programmatically. In both cases, setting min and max value in manual mode is possible indipendently for all axis on a graph.

In the UIR editor show the options for the desired axis and uncheck the "auto scale" check box: this will enable the "Minimum" and "Maximum" controls on which you can set the desired range for that axis.

Do do this programmatically, simply use the SetAxisScalingMode function: set "Axis Scaling" parameter to VAL_MANUAL and pass the desired value for min and max parameters to the function.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,245 Views)
Alternatively, you might use a logarithmic scale. This can be set in the UIR editor, or programmatically:
SetCtrlAttribute (panelHandle, PANEL_GRAPH, ATTR_XMAP_MODE, VAL_LOG);
0 Kudos
Message 3 of 3
(3,233 Views)