User`s manual

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