User`s manual

Arming and
Triggering a
Frequency Sweep
The SWP_STEP program show you how to control the start and advancing
of a frequency sweep. The program sets the sweep arm and sweep trigger
sources to
HOLD. The AFG is armed, and advances to the next frequency in
the sweep using the
ARM:SWEep[:IMMediate] and
TRIGger:SWEep[:IMMediate] commands respectively.
Using the flowchart in Figure 4-1 on page 118 as a guide, the steps of the
program are:
1. Select the frequency generator that allows frequency sweeping
TRIGger[:STARt]:SOURce <source>
2. Select the frequency sweep mode
[SOURce:]FREQuency[1]:MODE <mode>
3. Set the start frequency
[SOURce:]FREQuency[1]:STARt <start_freq>
4. Set the stop frequency
[SOURce:]FREQuency[1]:STOP <stop_freq>
5. Set the number of points (frequencies) in the frequency sweep
[SOURce:]SWEep:POINts <number>
6. Set the source which starts the frequency sweep
ARM:SWEep:SOURce <source>
7. Set the source which advances the sweep to the next frequency
TRIGger:SWEep:SOURce <source>
8. Set the output function
[SOURce:]FUNCtion[:SHAPe] <shape>
9. Set the signal amplitude
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <amplitude>
10. Place the AFG in the wait-for-arm state
INITiate[:IMMediate]
190 Arming and Triggering Chapter 5