11.07.2015 Views

Agilent 33120A User's Guide

Agilent 33120A User's Guide

Agilent 33120A User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6 Application ProgramsUsing the APPLy Command. . . 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);}/**************************************************************************/void burst_trig(void){/* Trigger the function generator to output a single burst. To outputa continuous burst change the trigger source to "IMMediate".To change the trigger source, send "TRIG:SOUR IMM" in the"out_waveform" function. */}IOOUTPUTS(ADDR, "*TRG", 4); /* or "IOTRIGGER(ADDR);" *//**************************************************************************/End of Program 1 6251

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

Saved successfully!

Ooh no, something went wrong!