This kind of error is usually received when you are addressing a control in a panel passing to the function the handle of another panel.
The UIR editor creates macros for addressing the individual controls on each panel (look into the include file automatically generated): those macros are really integer values, that is when you address the control GRAFPANEL_LOGCHART you are really using for example 'the 3rd control in the panel', so if 'panel' holds an incorrect panel handle, the 3rd control in the panel really pointed to by 'panel' variable is another type of control, and you receive that kind of error.
You have to check your source code to verify that the panel handle you are using is the correct one.
By the way, 'panel' is the default variabl
e name for a control or a panel callback, that holds the handle of the panel that is triggering the callback; you should not re-use this variable in the panel or control's callback. That is, your code should look as follows:
int CVICALLBACK YourPanelCallback (int panel, int event, void *callbackData, int eventData1, int eventData2)
{
int pH;
// Your code here
pH = LoadPanel (0, "file.uir", GRAFPANEL);
PlotStripChart (pH, GRAFPANEL_LOGCHART, dRamValue, 1, 0, 0,VAL_DOUBLE);
DisplayPanel (pH);
return 0;
}
Hope this helps
Roberto