11.07.2015 Views

Agilent 33120A User's Guide

Agilent 33120A User's Guide

Agilent 33120A User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6 Application ProgramsDownloading an Arbitrary Waveform over GPIB. . . continuedvoid 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 3260

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!