
. . . continued
void check_error(char *func_name)
{
/* Read error queue to determine if errors have occurred */
char message[80];
int length = 80;
IOOUTPUTS(ADDR, "SYST:ERR?", 9); /* Read the error queue */
IOENTERS(ADDR, message, &length); /* Enter error string */
while (atoi(message) != 0) /* Loop until all errors are read */
{
printf("Error %s in function %s\n\n", message, func_name);
IOOUTPUTS(ADDR, "SYST:ERR?", 9);
IOENTERS(ADDR, message, &length);
}
}
/**************************************************************************/
End of Program 3
Chapter 6 Application Programs
Downloading an Arbitrary Waveform over GPIB
260
Summary of Contents for 33120A
Page 2: ......
Page 10: ...8 ...
Page 14: ...Contents Contents 12 ...
Page 15: ...1 Quick Start 1 ...
Page 31: ...2 Front Panel Menu Operation 2 ...
Page 55: ...3 Features and Functions 3 ...
Page 126: ...124 ...
Page 127: ...4 Remote Interface Reference 4 ...
Page 204: ...SCPI Status System Chapter 4 Remote Interface Reference The SCPI Status Registers 202 ...
Page 228: ...226 ...
Page 229: ...5 Error Messages 5 ...
Page 244: ...242 ...
Page 245: ...6 Application Programs 6 ...
Page 272: ...270 ...
Page 273: ...7 Tutorial 7 ...
Page 299: ...8 Specifications 8 ...
Page 304: ...302 ...