LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CWGraph display problem

My graph is working properly now. I have some trouble customizing it.

I am trying to use these functions to set the values of the Y scale and set the auto scale to Y axif off, but they didn´t work. Nothing occurs when I use them.
                               
    GetObjHandleFromActiveXCtrl (newPanelID, controlAux, &ObjHandle);
    CWUIControlsLib_CWAxisSetAutoScale (ObjHandle, NULL, VFALSE);
    CWUIControlsLib_CWAxisSetMinMax (ObjHandle, NULL, CA_VariantInt(atoi(min_range)),  CA_VariantInt(atoi(max_range)));

I plotted the graph using this code:
                    GetObjHandleFromActiveXCtrl (panelID, controlID, &ObjHandle);
                    CA_VariantSet1DArray (&dataToPlotY, CAVT_DOUBLE, numberOfTraces, pValue);
                    CWUIControlsLib__DCWGraphChartXvsY(ObjHandle,NULL,CA_VariantDouble (timestamp),dataToPlotY,CA_VariantBool(0));

Could you help me to put the customizing functions working?

Thank you in advance.


Message Edited by Oliveira on 09-13-2007 02:44 PM

0 Kudos
Message 11 of 11
(977 Views)