BASIC Program Example (SMPLSWP1)
1
!RE-STORE"SMPLSWP1"
2
!This program specifies start and stop frequencies to sweep
3
!a sine wave from 0 to 1 MHz.
4
!
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 Sweep1
150
CALL Query
160
!
170
WAIT .1 !allow interrupt to be serviced
180
OFF INTR 7
190
END
200
!
210
SUB Sweep1
220 Sweep1: !Subprogram which outputs a swept sine wave from 0 Hz to 1 MHz
230
COM @Afg
240
OUTPUT @Afg;"SOUR:ROSC:SOUR INT1;";
!reference oscillator
250
OUTPUT @Afg;":TRIG:STAR:SOUR INT1;";
!frequency1 generator (DDS)
260
OUTPUT @Afg;":SOUR:FREQ1:MODE SWE;";
!sweep mode
270
OUTPUT @Afg;":SOUR:FREQ1:STAR 0;";
!start frequency
280
OUTPUT @Afg;":SOUR:FREQ1:STOP 1E6;";
!stop frequency
290
OUTPUT @Afg;":SOUR:SWE:COUN INF;";
!sweep count
300
OUTPUT @Afg;":SOUR:FUNC:SHAP SIN;";
!function
310
OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5 V" !amplitude
320
OUTPUT @Afg;"INIT:IMM"
!wait-for-arm state
330
SUBEND
340
!
350
SUB Rst
360 Rst:
!Subprogram which resets the E1445.
370
COM @Afg
380
OUTPUT @Afg;"*RST;*OPC?"
!reset the AFG
390
ENTER @Afg;Complete
400
SUBEND
410
!
420
SUB Query
430 Query:
!Subprogram which queries sweep parameters
440
COM @Afg
Continued on Next Page
122 Sweeping and Frequency-Shift Keying
Chapter 4
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...