BASIC Program Example (SWP_TRIG)
1
!RE-STORE"SWP_TRIG"
2
!This program triggers a sweep using the Group Execute
3
!Trigger command. The sweep is from 1 kHz to 1 MHz.
4
!
10
!Assign I/O path between the computer and E1445A.
20
ASSIGN @Afg TO 80910.
30
COM @Afg
40
!
50
!Set up error checking
60
ON INTR 8 CALL Errmsg
70
ENABLE INTR 8;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 Swp_trig
150
!
160
WAIT .1 !allow interrupt to be serviced
170
OFF INTR 8
180
END
190
!
200
SUB Swp_trig
210 Swp_trig:
!Subprogram that triggers a sweep
220
COM @Afg
230
OUTPUT @Afg;"SOUR:FREQ1:MODE SWE;";
!Sweep mode
240
OUTPUT @Afg;" :SOUR:FREQ1:STAR 1E3;";
!start frequency
250
OUTPUT @Afg;" :SOUR:FREQ1:STOP 1E6;";
!stop frequency
260
OUTPUT @Afg;" :SOUR:SWE:COUN INF;";
!repetition count
270
OUTPUT @Afg;" :SOUR:SWE:POIN 100;";
!frequency points
280
OUTPUT @Afg;" :SOUR:SWE:TIME .13"
!sweep time
290
OUTPUT @Afg;"ARM:SWE:SOUR LINK"
!trigger mode
300
OUTPUT @Afg;"ARM:STAR:LAY1:COUN 65536"
!waveform repetitions
310
OUTPUT @Afg;"ARM:STAR:LAY2:COUN INF"
!waveform starts
320
OUTPUT @Afg;"ARM:STAR:LAY2:SOUR BUS"
!trigger source
330
OUTPUT @Afg;":SOUR:FUNC:SHAP SIN;";
!function
340
OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5 V"
!amplitude
350
OUTPUT @Afg;"INIT:IMM"
!wait-for-arm state
360
CALL Step
370
SUBEND
380
!
390
SUB Step
400 Step: !Subprogram which starts sweep
410
COM @Afg
420
DISP “Press ’Continue’ when ready to start a sweep”
430
PAUSE
440
TRIGGER @Afg
!trigger AFG
Continued on Next Page
188 Arming and Triggering
Chapter 5
Содержание E1445A
Страница 2: ......
Страница 14: ...Notes 12 Agilent E1445A User s Manual Contents...
Страница 18: ...Notes 16 Agilent E1445A Arbitrary Function Generator User s Manual...
Страница 19: ...Notes Agilent E1445A Arbitrary Function Generator User s Manual 17...
Страница 20: ...Notes 18 Agilent E1445A Arbitrary Function Generator User s Manual...
Страница 54: ...Notes 52 Getting Started Chapter 1...
Страница 84: ...Notes 82 Generating Standard Waveforms Chapter 2...
Страница 204: ...Notes 202 Arming and Triggering Chapter 5...
Страница 432: ...Figure 9 1 E1445A Status Groups and Associated Registers 430 AFG Status Chapter 9...
Страница 446: ...Notes 444 AFG Status Chapter 9...
Страница 464: ...Notes 462 Agilent E1445A Specifications Appendix A...
Страница 534: ...Notes 532 Agilent E1445A User s Manual Index...