User`s manual

5. Set the arm source
ARM[:STARt]:LAYer2:SOURce <source>
6. Set the trigger edge of the external trigger signal
ARM[:STARt]:LAYer2:SLOPe <edge>
7. Place the AFG in the wait-for-arm state
INITiate[:IMMediate]
BASIC Program Example (EXT_ARM)
1 !RE-STORE"EXT_ARM"
2 !This program arms the AFG with an external signal applied to the
3 !AFG Start Arm In port. When armed, a 10 kHz, 1 VPP square wave is
4 !output
5 !
10 !Assign I/O path between the computer and E1445A.
20 ASSIGN @Afg TO 70910
30 COM @Afg
40 !
50 !Set up error checking
60 ON INTR 7 CALL Errmsg
70 ENABLE INTR 7;2
80 OUTPUT @Afg;"*CLS"
90 OUTPUT @Afg;"*SRE 32"
100 OUTPUT @Afg;"*ESE 60"
110 !
120 !Call the subprograms
130 CALL Rst
140 CALL External_arm
150 !
160 WAIT .1 !allow interrupt to be serviced
170 OFF INTR 7
180 END
190 !
200 SUB External_arm
210 External_arm: !Subprogram which externally arms the AFG and outputs
220 !a square wave.
230 COM @Afg
240 OUTPUT @Afg;"SOUR:FREQ1:MODE FIX;"; !frequency mode
250 OUTPUT @Afg;":SOUR:FREQ1:FIX 3;"; !frequency
260 OUTPUT @Afg;":SOUR:FUNC:SHAP SQU;"; !function
270 OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 1VPP" !amplitude
280 OUTPUT @Afg;"ARM:STAR:LAY2:SOUR EXT" !arm source
290 OUTPUT @Afg;"ARM:STAR:LAY2:SLOP NEG" !signal edge
300 OUTPUT @Afg;"INIT:IMM" !wait-for-arm state
310 SUBEND
320 !
330 SUB Rst
Continued on Next Page
Chapter 5 Arming and Triggering 167