User`s manual

2370 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 1" !sequence size
2380 OUTPUT @Afg USING "#,K";"SOUR:LIST1:SSEQ:COMB #0" !segm execution order
2390 OUTPUT @Afg1;Sequence(*) !sequence list in indefinite length block
2400 OUTPUT @Afg;CHR$(10);END !terminate with Line Feed (LF) and EOI
2410 !
2420 OUTPUT @Afg;"SOUR:LIST1:SSEQ:ADDR?" !sequence location
2430 ENTER @Afg;Seq3_addr
2440 SUBEND
2450 !
2460 SUB Rst
2470 Rst: !Subprogram which resets the E1445.
2480 COM @Afg,@Afg1,Base_addr,Seq1_addr,Seq2_addr,Seq3_addr
2490 OUTPUT @Afg;"*RST;*CLS;*OPC?" !reset the AFG
2500 ENTER @Afg;Complete
2510 SUBEND
2520 !
2530 SUB Wf_del
2540 Wf_del: !Subprogram which deletes all sequences and segments.
2550 COM @Afg,@Afg1,Base_addr,Seq1_addr,Seq2_addr,Seq3_addr
2560 OUTPUT @Afg;"FUNC:USER NONE" !select no sequences
2570 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL" !Clear sequence memory
2580 OUTPUT @Afg;"LIST:SEGM:DEL:ALL" !Clear segment memory
2590 SUBEND
Comments SCPI commands are included in this program to load segment and
sequence memory, and initialize the AFG. This program executes as
intended when the SCPI commands are executed prior to writing to
the registers.
The sequence in which the Waveform Selection Registers are written
to and the register contents are summarized below.
The Traffic Register selects the source which specifies addresses in
sequence base memory that, in turn, select the waveform sequences.
The Waveform Select Register (selected by the Traffic Register)
contains the waveform index which is the location in sequence base
memory where the base address of the sequence in sequence memory
is located.
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, WAVE_SEL.FRM, is in directory
VBPROG” and the Visual C example program, WAVE_SEL.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Traffic Register Waveform Select
Register
Sequence Base
Register
Sequence Memory
0
1
2
3
(reserved)
Seq1_addr
Seq2_addr
Seq3_addr
.
8
16
A
16
20
16
Appendix C Register-Based Programming 505