To generate a frequency sweep:
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
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 |
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 |
Selects linear or logarithmic spacing for sweep.
Parameter | Typical Return |
---|---|
{LINear|LOGarithmic}, default LIN | LIN or LOG |
Set logarithmic sweep spacing: SWE:SPAC LIN |
Enables or disables the sweep.
Parameter | Typical Return |
---|---|
{ON|1|OFF|0}, default OFF | 0 (OFF) or 1 (ON) |
Enable sweep: SWE:STAT ON |
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 |