User`s manual

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