User`s manual
7. Feed the master AFG trigger to the trigger source of the slave AFG
[SOURce:]MARKer:ECLTrg<n>:FEED <source>
8. Enable the routing of the trigger signal
[SOURce:]MARKer:ECLTrg<n>[:STATe] <mode>
9. Place the AFG in the wait-for-arm state
INITiate[:IMMediate]
BASIC Program Example (LOCKSTEP)
1 !RE-STORE"LOCKSTEP"
2 !This program “lock-steps” two AFGs. The trigger source which
3 !advances the waveform of the master AFG (DDS time base) is shared by
4 !the slave AFG. Thus, changing the frequency of the master AFG
5 !changes the frequency of the slave AFG simultaneously.
6 !
10 !Assign I/O path between the computer and E1445A, dimension an array
20 !variable for the sin(x)/x waveform amplitude points.
30 ASSIGN @Afg_m TO 70910
40 ASSIGN @Afg_s TO 70911
50 COM @Afg_m,@Afg_s,REAL Waveform(1:4096)
60 !
70 !Set up error checking
80 ON INTR 7 CALL Errmsg
90 ENABLE INTR 7;2
100 OUTPUT @Afg_m;"*CLS"
110 OUTPUT @Afg_m;"*SRE 32"
120 OUTPUT @Afg_m;"*ESE 60"
130 !
140 OUTPUT @Afg_s;"*CLS"
150 OUTPUT @Afg_s;"*SRE 32"
160 OUTPUT @Afg_s;"*ESE 60"
170 !
180 !Call the subprograms which reset the AFGs, delete all
190 !existing waveform segments and sequences, and which set up the
200 !AFGs to output arbitrary waveforms.
210 CALL Rst
220 CALL Wf_del
230 CALL Sinx_def
240 CALL Sinx_m
250 CALL Sinx_s
260 !
270 !Select the waveform sequence of the master AFG, place the
280 !master AFG in the Wait-for-arm state.
290 OUTPUT @Afg_m;"SOUR:FUNC:USER SINX_M"
300 OUTPUT @Afg_m;"INIT:IMM"
310 !
320 WAIT .1 !allow interrupt to be serviced
330 OFF INTR 7
Continued on Next Page
Chapter 5 Arming and Triggering 177