HP (Hewlett-Packard) B Network Router User Manual


 
else
printf("\nReading %d = %.6E", i, (rdgs[i] * 0.0025));
}
free(rdgs);
}
/****************************************************************************/
void rst_clr(long address)
{
/* Reset and clear the instruments */
IOOUTPUTS(address, "*RST;*CLS", 9);
}
/****************************************************************************/
void check_error(char *array, long address)
{
char into[161];
intlength = 160;
IOOUTPUTS(address, "SYST:ERR?", 9); /* Query error register */
IOENTERS(address, into, &length); /* Enter error message */
if (atoi(into) != 0) /* Determine if error is present */
/* If errors present, print and exit */
{
while (atoi(into) != 0)
{
printf("Error %s in %s\n\n", into, array);
length =160;
IOOUTPUTS(address, "SYST:ERR?", 9);
IOENTERS(address, into, &length);
}
exit(1);
}
}
412 Local Bus Interleaved Transfers Appendix D