09-02-2019 03:28 AM
Solved! Go to Solution.
09-02-2019 09:41 AM
The function to set the axis values is SetAxisScalingMode, passing VAL_MANUAL in Axis Scaling parameter and desired values in min and max.
09-02-2019 11:28 PM
EVENT_VAL_CHANGED: GetCtrlVal (panelGraf, PANELGRAF_AUTOSCALE, &val); if (val) { SetAxisScalingMode (panel, VYSKA_GRAFVYS, VAL_LEFT_YAXIS ,VAL_AUTOSCALE, 0, 0); SetAxisScalingMode (panel, VYSKA_GRAFVYS, VAL_RIGHT_YAXIS,VAL_AUTOSCALE, 0, 0); } else { SetAxisScalingMode(panel, VYSKA_GRAFVYS, VAL_LEFT_YAXIS , VAL_MANUAL, 480.0, 620.0); SetAxisScalingMode(panel, VYSKA_GRAFVYS, VAL_RIGHT_YAXIS, VAL_MANUAL, 480.0, 620.0); } break;
09-03-2019 05:06 AM
There is no reason for the graph not updating axis range in manual mode.
The only possible reason for the axis not being updated is when you set it in autoscale and actually don't have any trace associated to that axis.
Does SetAxisScalingmode returns any error?
09-03-2019 06:04 AM
09-03-2019 06:11 AM
As I told before, if there is no plot associated to the right axis of the stripchart the autoscale won't work since it has no data to autoscale against.
Check that you have at least one trace bound to the right Y-axis of the stripchart. If you have none, then you might consider hiding the axis at all.
09-03-2019 06:27 AM