/*@@var:*/
variables
{
// constants for LED access
const dword kLedMaskC1 = 0x008;
const dword kLedMaskC2 = 0x010;
const dword kLedMaskC3 = 0x020;
// constants for LED operation modes
const dword kLedOrangeOn = 0x00000020;
const dword kLedOrangeBlinking = 0x00000040;
dword status;
}
/*@@end*/
/*@@startStart:Start:*/
on start
{
status = xlAcquireLED(kLedMaskC1 | kLedMaskC2 | kLedMaskC3);
if( 0 == status)
{
xlSetLed(kLedMaskC1 | kLedMaskC2, kLedOrangeOn);
xlSetLed(kLedMaskC3, kLedOrangeBlinking);
}
}
/*@@end*/
/*@@stop:StopMeasurement:*/
on stopMeasurement
{
if( 0 == status)
{
xlReleaseLED(kLedMaskC1 | kLedMaskC2 | kLedMaskC3);
}
}
/*@@end*/