
134
HP E1563A and E1564A Register-Based Programming
Appendix B
Wait Function
/************************************************************/
void wait(int wait_seconds) /* wait for specified period in seconds */
{
time_t current_time;
time_t entry_time;
fflush(stdout);
if(-1==time(&entry_time))
{ printf(“Call failed, exiting...\n”);
exit(1);
}
do
{ if(-1==time(¤t_time))
{ printf(“Call failed, exiting...\n”);
exit(1);
}
}
while((current_time-entry_time)<((time_t)wait_seconds));
fflush(stdout);
} /* end of wait function */
Program Output
Printout from example program:
ID register = 0xCFFF
Device Type register = 0x7267
Status register = 0x40CE
last readings printout
all readings from all channels printout
HP E1563A/E1564A is reset
Summary of Contents for E1563A
Page 8: ......
Page 24: ...24 Digitizer Module Set up ...
Page 84: ...84 Digitizer Command Reference ...
Page 110: ...110 ...
Page 138: ...138 HP E1563A and E1564A Register Based Programming Appendix B ...
Page 156: ...156 HP E1563A and E1564A Verification Tests ...