User`s manual

BASIC Program Example (LIST_TME)
1 !RE-STORE"LIST_TME"
2 !The following program steps through a frequency list at a rate
3 !such that a new frequency is output every 1 second.
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 List_time
150 !
160 WAIT .1 !allow interrupt to be serviced
170 OFF INTR 7
180 END
190 !
200 SUB List_time
210 List_count: !Subprogram which continuously outputs a frequency list
220 !in which the frequencies are 1s apart
230 COM @Afg
240 OUTPUT @Afg;"SOUR:FREQ1:MODE LIST;"; !list mode
250 OUTPUT @Afg;" :SOUR:LIST2:FREQ 2.5E3,5E3,7.5E3,10E3;";!freq list
260 OUTPUT @Afg;" :SOUR:SWE:COUN INF;"; !hop through list continuously
270 OUTPUT @Afg;":TRIG:SWE:SOUR TIM;"; !list advance source
280 OUTPUT @Afg;" :SOUR:SWE:TIME 3;"; !time through list
290 OUTPUT @Afg;":SOUR:FUNC:SHAP TRI;"; !function
300 OUTPUT @Afg;":SOUR:RAMP:POIN 1E3;"; !1000 point waveform
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 Errmsg
430 Errmsg: !Subprogram which displays E1445 programming errors
440 COM @Afg
Continued on Next Page
Chapter 4 Sweeping and Frequency-Shift Keying 139