/****************************************************************************/ void main(void)

{

check_error(); /* call error check function */

}

/****************************************************************************/ void check_error(void)

{

 

 

 

char

into[161];

 

 

int

length = 160;

 

 

IOOUTPUTS(ADDR, "SYST:ERR?", 9);

/* Query error register */

IOENTERS(ADDR, 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("%s\n\n", into); IOOUTPUTS(ADDR, "SYST:ERR?", 9); IOENTERS(ADDR, into, &length);

}

exit(1);

}

}

Digitizer/

Command Module

Deadlock

If the digitizer’s access light remains on while programming the digitizer over HP-IB, it may be due to a deadlock between the digitizer and the HP E1406 Command Module. If such a deadlock occurs and you cannot access the Command Module, send the following command sequence:

ABORT 7

ABORT 7

CLEAR 70905 (selected device clear)

Chapter 1

Getting Started 47

Page 47
Image 47
HP E1429A manual Digitizer Command Module Deadlock, Abort