11-13-2007 03:39 AM
11-13-2007 05:33 AM
I wrote a quick test case with the callback below and it successfully detected integers and non-integers, even if I changed the value with the increment/decrement buttons. Hope this helps.
int CVICALLBACK numericChange (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
GetCtrlVal(panel, PANEL_NUMERIC, &controlValue); // note - controlValue is a double
if ( fmod(controlValue,1.00) != 0) SetCtrlVal(panel, PANEL_LED, 0);
else SetCtrlVal(panel, PANEL_LED, 1);
break;
}
return 0;
}
Best regards,
Kevin C.