User`s manual
1040 !
1050 !Sequence (2,1) is the repetition count and marker enable for
1060 !segment M2. Sequence (2,2) is the starting address of segment M2.
1070 Sequence(2,1)=(SHIFT(4096-1,-4)+Addrm2 DIV 65536)+4 !enable marker
1080 Sequence(2,2)=Addrm2 MOD 65536-65536*(Addrm2 MOD 65536>32767)
1090 !
1100 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL M_OUT" !sequence name
1110 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 2" !segments in sequence
1120 OUTPUT @Afg USING "#,K";"SOUR:LIST1:SSEQ:COMB #0"
1130 OUTPUT @Afg1;Sequence(*) !sequence list in indefinite length block
1140 OUTPUT @Afg;CHR$(10);END !terminate with Line Feed (LF) and EOI
1150 SUBEND
1160 !
1170 SUB Rst
1180 Rst: !Subprogram which resets the E1445.
1190 COM @Afg,Afg1
1200 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
1210 ENTER @Afg;Complete
1220 SUBEND
1230 !
1240 SUB Wf_del
1250 Wf_del: !Subprogram which deletes all sequences and segments.
1260 COM @Afg,Afg1
1270 OUTPUT @Afg;"FUNC:USER NONE" !select no sequences
1280 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL" !Clear sequence memory
1290 OUTPUT @Afg;"LIST:SEGM:DEL:ALL" !Clear segment memory
1300 SUBEND
1310 !
1320 SUB Errmsg
1330 Errmsg:!Subprogram which displays E1445 programming errors
1340 COM @Afg,Afg1
1350 DIM Message$[256]
1360 !Read AFG status byte register and clear service request bit
1370 B=SPOLL(@Afg)
1380 !End of statement if error occurs among coupled commands
1390 OUTPUT @Afg;""
1400 OUTPUT @Afg;"ABORT" !abort output waveform
1410 REPEAT
1420 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
1430 ENTER @Afg;Code,Message$
1440 PRINT Code,Message$
1450 UNTIL Code=0
1460 STOP
1470 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, COMBSEQ.FRM, is in directory
“VBPROG” and the Visual C example program, COMBSEQ.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
258 High Speed Operation Chapter 7