SWEep Subsystem Introduction

To generate a frequency sweep:

  1. Select the waveform shape, amplitude and offset: Use APPLy or the equivalent FUNCtion, FREQuency, VOLTage, and VOLTage:OFFSet commands to select the function, frequency, amplitude, and offset. You can select a sine, square, ramp, pulse, or arbitrary waveform (noise, PRBS, and DC are not allowed).
  2. Select sweep's frequency boundaries: FREQuency:STARt and FREQuency:STOP , or FREQuency:CENTer and FREQuency:SPAN
  3. Select linear or logarithmic sweep mode: SWEep:SPACing
  4. Set sweep time: SWEep:TIME
  5. Set sweep hold and return times: SWEep:HTIMe and SWEep:RTIMe
  6. Select sweep trigger source: TRIGger[1|2]:SOURce
  7. Set the marker frequency (optional): MARKer:FREQuency
  8. Enable sweep: SWEep:STATe ON

The following code produces the waveform shown below.

SOURce1:FUNCtion SINE
SOURce1:FREQuency +2.0E+03
SOURce1:FREQuency:STARt +2.0E+03
SOURce1:FREQuency:STOP +6.0E+03
SOURce1:VOLTage +1.0
SOURce1:VOLTage:OFFS +0.0
SOURce1:SWEep:TIME +5.0E-03
TRIGger1:SOURce IMM
SOURce1:FREQuency:MODE SWE
OUTPut1 1

Sweeping waveforms

[SOURce[1|2]:]SWEep:HTIMe {<hold_time>|MINimum|MAXimum|DEFault}
[SOURce[1|2]:]SWEep:HTIMe? [{MINimum|MAXimum}]

Sets number of seconds the sweep holds (pauses) at the stop frequency before returning to the start frequency.

Parameter Typical Return
0 to 3600, default 0 +3.400000000000000E+00
Set sweep hold time to 3.4 seconds:
SWE:HTIM 3.4

[SOURce[1|2]:]SWEep:RTIMe {<return_time>|MINimum|MAXimum|DEFault}
[SOURce[1|2]:]SWEep:RTIMe? [{MINimum|MAXimum}]

Sets number of seconds the sweep takes to return from stop frequency to start frequency.

Parameter Typical Return
0 to 3600, default 0 +5.600000000000000E+00
Set sweep return time to 5.6 s:
SWE:RTIM 5.6

[SOURce[1|2]:]SWEep:SPACing {LINear|LOGarithmic}
[SOURce[1|2]:]SWEep:SPACing?

Selects linear or logarithmic spacing for sweep.

Parameter Typical Return
{LINear|LOGarithmic}, default LIN LIN or LOG
Set logarithmic sweep spacing:
SWE:SPAC LIN

[SOURce[1|2]:]SWEep:STATe {ON|1|OFF|0}
[SOURce[1|2]:]SWEep:STATe?

Enables or disables the sweep.

Parameter Typical Return
{ON|1|OFF|0}, default OFF 0 (OFF) or 1 (ON)
Enable sweep:
SWE:STAT ON

[SOURce[1|2]:]SWEep:TIME {<seconds>|MINimum|MAXimum|DEFault}
[SOURce[1|2]:]SWEep:TIME? [{MINimum|MAXimum}]

Sets time (seconds) to sweep from start frequency to stop frequency.

Parameter Typical Return

1 ms to 250,000 s for linear sweep, up to 500 s for logarithmic sweep; default 1 s

+2.500000000000000E+01
Set sweep time to 25 s:
SWE:TIME 25
SWEep Subsystem Introduction