User`s manual
FSK Using the
TTLTrg<
n> Control
Source
The FSK2 program sets up frequency-shift keying using a TTLTrg<n>
trigger line as the control source. The TTLTrg trigger line is driven by the
Agilent E1406A Command Module.
Using the flowchart in Figure 4-1 as a guide, the steps of this program are:
1. Select the frequency-shift keying mode
[SOURce:]FREQuency[1]:MODE <mode>
2. Select the FSK frequencies
[SOURce:]FREQuency[1]:FSKey <frequency1>,<frequency2>
3. Select the FSK control source
[SOURce:]FREQuency[1]:FSKey:SOURce <source>
4. Set the output function
[SOURce:]FUNCtion[:SHAPe] <shape>
5. Set the signal amplitude
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <amplitude>
6. Place the AFG in the wait-for-arm state
INITiate[:IMMediate]
BASIC Program Example (FSK2)
1 !RE-STORE "FSK2"
2 !This program shifts between 1 MHz and 2 MHz based on a control
3 !signal supplied by the Agilent E1406 Command Module on TTLTRG
4 !trigger line 5.
10 !Assign I/O path between the computer and E1445A.
20 ASSIGN @Afg TO 70910
30 ASSIGN @Cmd_mod TO 70900
40 COM @Afg,@Cmd_mod
50 !
60 !Set up error checking
70 ON INTR 7 CALL Errmsg
80 ENABLE INTR 7;2
90 OUTPUT @Afg;"*CLS"
100 OUTPUT @Afg;"*SRE 32"
110 OUTPUT @Afg;"*ESE 60"
120 !
130 !Call the subprograms which reset the AFG, set up frequency-shift
140 !keying, and which set up the TTLTrg5 trigger line.
150 CALL Rst
160 CALL Fsk_ttl
170 CALL Setup_ttl5
180 WAIT .1 !allow interrupt to be serviced
190 OFF INTR 7
Continued on Next Page
150 Sweeping and Frequency-Shift Keying Chapter 4