EasyManua.ls Logo

Agilent Technologies 33120A - Page 253

Agilent Technologies 33120A
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
. . . 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);
}
}
/**************************************************************************/
void burst_trig(void)
{
/* Trigger the function generator to output a single burst. To output
a 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
6
Chapter 6 Application Programs
Using the APPLy Command
251

Table of Contents

Other manuals for Agilent Technologies 33120A

Related product manuals