06-01-2007 03:35 AM
06-01-2007 06:21 AM
I would use a CVI Timer control set to 1 second, with a callback along the following lines:
static select = 0; // Static so its value is retained between calls
static map [3] = {PANEL_LED1, PANEL_LED2, PANEL_LED3}; // Control IDs of LEDs
SetCtrlVal (panel, map [select], 0); // Turn off (old) LED
if (++select == 3) // Counting ticks
select = 0; // Wrap back to 0
SetCtrlVal (panel, map [select], 1); // Turn on (new) LED
JR