User`s manual

450 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL RAMP_OUT"
460 OUTPUT @Afg;" SOUR:LIST1:SSEQ:DEF 1"
470 OUTPUT @Afg;" SOUR:LIST1:SSEQ:SEQ RAMP"
480 SUBEND
490 !
500 SUB Rst
510 Rst: !Subprogram which resets the E1445.
520 COM @Afg
530 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
540 ENTER @Afg;Complete
550 SUBEND
560 !
570 SUB Wf_del
580 Wf_del: !Subprogram which deletes all sequences and segments.
590 COM @Afg
600 OUTPUT @Afg;"FUNC:USER NONE" !select no sequences
610 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL" !Clear sequence memory
620 OUTPUT @Afg;"LIST:SEGM:DEL:ALL" !Clear segment memory
630 SUBEND
640 !
650 SUB Errmsg
660 Errmsg: !Subprogram which displays E1445 programming errors
670 COM @Afg
680 DIM Message$[256]
690 !Read AFG status byte register and clear service request bit
700 B=SPOLL(@Afg)
710 !End of statement if error occurs among coupled commands
720 OUTPUT @Afg;""
730 OUTPUT @Afg;"ABORT" !abort output waveform
740 REPEAT
750 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
760 ENTER @Afg;Code,Message$
770 PRINT Code,Message$
780 UNTIL Code=0
790 STOP
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, AFGGEN1.FRM, is in directory
“VBPROG” and the Visual C example program, AFGGEN1.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 3 Generating Arbitrary Waveforms 103