User`s manual

440 SUB Rst
450 Rst: !Subprogram which resets the E1445.
460 COM @Afg,Afg1
470 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
480 ENTER @Afg;Complete
490 SUBEND
500 !
510 SUB Errmsg
520 Errmsg: !Subprogram which displays E1445 programming errors
530 COM @Afg,Afg1
540 DIM Message$[256]
550 !Read AFG status byte register and clear service request bit
560 B=SPOLL(@Afg)
570 !End of statement if error occurs among coupled commands
580 OUTPUT @Afg;""
590 OUTPUT @Afg;"ABORT" !abort output waveform
600 REPEAT
610 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
620 ENTER @Afg;Code,Message$
630 PRINT Code,Message$
640 UNTIL Code=0
650 STOP
630 SUBEND
Program Modifications In order to download the frequency list as an indefinite length arbitrary
block, modify lines 350 through 370 as follows:
350 OUTPUT @Afg USING “#,K”;":SOUR:LIST2:FREQ #0" !download freqs
360 OUTPUT @Afg1;Freqlist(*)
370 OUTPUT @Afg;CHR$(10);END !LF EOI (NL END)
Additional information on definite and indefinite length arbitrary blocks is
located under “Arbitrary Block Data” on page 156.
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, LISTDEF.FRM, is in directory
“VBPROG” and the Visual C example program, LISTDEF.C, is in directory
“VCPROG” on the CD that came with your Agilent E1445A.
132 Sweeping and Frequency-Shift Keying Chapter 4