12-01-2006, 10:50 AM
IVB Wrote:do you mean a command to "turn all lights off", or the question of "are all lights off?"
I was referring to the "are all lights off". In the Polling section of the driver, a method would run that would check the status of all light fields and do an AND. Psuedo code:
Code:
AllOff := True;
While ((Index <= LastLight) && (AllOff)) Do
AllOff := AllOff AND LightState(Index);
Index := Index + 1;
EndWhile;
AllOffField := AllOff;
You could probably write your own in a CML Macro and call it periodically, writing the result into a Variable Driver field.