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
Summary of Contents for E1445A
Page 2: ......
Page 14: ...Notes 12 Agilent E1445A User s Manual Contents...
Page 18: ...Notes 16 Agilent E1445A Arbitrary Function Generator User s Manual...
Page 19: ...Notes Agilent E1445A Arbitrary Function Generator User s Manual 17...
Page 20: ...Notes 18 Agilent E1445A Arbitrary Function Generator User s Manual...
Page 54: ...Notes 52 Getting Started Chapter 1...
Page 84: ...Notes 82 Generating Standard Waveforms Chapter 2...
Page 204: ...Notes 202 Arming and Triggering Chapter 5...
Page 432: ...Figure 9 1 E1445A Status Groups and Associated Registers 430 AFG Status Chapter 9...
Page 446: ...Notes 444 AFG Status Chapter 9...
Page 464: ...Notes 462 Agilent E1445A Specifications Appendix A...
Page 534: ...Notes 532 Agilent E1445A User s Manual Index...