User`s manual

370 SUB Rst
380 Rst: !Subprogram which resets the E1445.
390 COM @Afg
400 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
410 ENTER @Afg;Complete
420 SUBEND
430 !
440 SUB Fsk_info
450 Fsk_info: !Subprogram which queries FSK frequencies and source
460 COM @Afg
470 DIM Frequencies$[80]
480 OUTPUT @Afg;"SOUR:FREQ1:FSK?" !query FSK frequencies
490 ENTER @Afg;Frequencies$
500 OUTPUT @Afg;"SOUR:FREQ:FSK:SOUR?" !query FSK source
510 ENTER @Afg;Source$
520 PRINT “FSK frequencies are: ”;Frequencies$
530 PRINT “FSK control source is: ”;Source$
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$
690 UNTIL Code=0
700 STOP
710 SUBEND
Upon completion, the program displays:
FSK frequencies are:
+5.000000000E+006,+1.000000000E+007
FSK control source is: EXT
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, FSK1.FRM, is in directory
“VBPROG” and the Visual C example program, FSK1.C, is in directory
“VCPROG” on the CD that came with your Agilent E1445A.
Chapter 4 Sweeping and Frequency-Shift Keying 149