User`s manual
450 ENTER @Afg;Center$
460 OUTPUT @Afg;"SOUR:FREQ1:SPAN?"
470 ENTER @Afg;Span$
480 OUTPUT @Afg;"SOUR:FREQ1:STAR?"
490 ENTER @Afg;Start$
500 OUTPUT @Afg;"SOUR:FREQ1:STOP?"
510 ENTER @Afg;Stop$
520 DISP “START = ”;Start$,"STOP = ";Stop$,“CENTER = ”;Center$,"SPAN = ";Span$
530 SUBEND
540 !
550 SUB Errmsg
560 Errmsg: !Subprogram which displays E1445 programming errors
570 COM @Afg
580 DIM Message$[256]
590 !Read AFG status byte register and clear service request bit
600 B=SPOLL(@Afg)
610 !End of statement if error occurs among coupled commands
620 OUTPUT @Afg;""
630 OUTPUT @Afg;"ABORT" !abort output waveform
640 REPEAT
650 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
660 ENTER @Afg;Code,Message$
670 PRINT Code,Message$
680 UNTIL Code=0
690 STOP
700 SUBEND
The start, stop, center, and span values returned are:
START = +1.000000000E+003 STOP = +2.100000000E+004
CENTER = +1.100000000E+004 SPAN = +2.000000000E+004
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SMPLSWP2.FRM, is in directory
“VBPROG” and the Visual C example program, SMPLSWP2.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 4 Sweeping and Frequency-Shift Keying 129