HP E1563A User Manual page 134

Table of Contents

Advertisement

Wait Function
/************************************************************/
void wait(int wait_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(&current_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
134 HP E1563A and E1564A Register-Based Programming
/* wait for specified period in seconds */
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
Appendix B

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1564a

Table of Contents