Access IOD-144 Microscope & Magnifier User Manual


 
DIGITAL INPUT/OUTPUT CARD IOD-144 USER MANUAL
6-12
j=-1 /*flag used to signal alarm is
de-activated*/
while(!j);
if(j == -1){
start=time(NULL);
printf("Alarm deactivated at %s,(asctime(gmtime(&start))));
sound(900); delay(300);
nosound(); delay(50);
sound(900); delay(100);
nosound();
}
else {
printf("Sensor #%d has been activated!!\n\n",j);
start=time(NULL);
printf("The time of alarm is %s", asctime(gmtime( &start)));
old_arming_stations=get_status();
ALARM();
} /*else*/
} /* for(;;) this "end" used to send program back to await re-arm*/
}