User`s manual

7. Set the signal amplitude
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <amplitude>
8. Place the AFG in the wait-for-arm state
INITiate[:IMMediate]
BASIC Program Example (FSK1)
1 !RE-STORE "FSK1"
2 !This program shifts between 5 MHz and 10 MHz based on a 1 MHz
3 !control signal applied to the “FSK” control source. The
4 !program also queries the FSK frequencies and the FSK control
5 !source.
6 !
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 Fsk
150 CALL Fsk_info
160 !
170 WAIT .1 !allow interrupt to be serviced
180 OFF INTR 7
190 END
200 !
210 SUB Fsk
220 Fsk: !Subprogram which sets up frequency-shift keying and the front
230 !panel FSK In BNC as the control source.
240 COM @Afg
250 OUTPUT @Afg;"SOUR:ROSC:SOUR INT1;"; !reference oscillator
260 OUTPUT @Afg;":TRIG:STAR:SOUR INT1;"; !frequency1 generator
270 OUTPUT @Afg;":SOUR:FREQ1:MODE FSK;"; !FSK mode
280 OUTPUT @Afg;" :SOUR:FREQ1:FSK 5E6,10E6;"; !FSK frequencies
290 OUTPUT @Afg;" :SOUR:FREQ1:FSK:SOUR EXT;"; !FSK source
300 OUTPUT @Afg;":SOUR:FUNC:SHAP SIN;"; !function
310 OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5 V" !amplitude
320 OUTPUT @Afg;"OUTP1:FILT:LPAS:FREQ 10 MHZ" !filter
330 OUTPUT @Afg;"OUTP1:FILT:LPAS:STAT ON" !enable filter
340 OUTPUT @Afg;"INIT:IMM" !wait-for-arm state
350 SUBEND
360 !
Continued on Next Page
148 Sweeping and Frequency-Shift Keying Chapter 4