You are doing it right, but remember SetCtrlAttribute does not update the attributes until you process the events. Put in a call to ProcessSystemEvents() after setting the Active Y Axis and it will work. As in:
SetCtrlAttribute (panelHandle, PANEL_GRAPH, ATTR_ACTIVE_YAXIS,
VAL_RIGHT_YAXIS);
ProcessSystemEvents();
GetCtrlAttribute (panelHandle, PANEL_GRAPH, ATTR_ACTUAL_YPRECISION,
&value);
Best Regards,
Chris Matthews
Measurement Studio Support Manager