Frequency#

SCPI Commands :

[SOURce<HW>]:SWEep:[FREQuency]:DWELl
[SOURce<HW>]:SWEep:[FREQuency]:MODE
[SOURce<HW>]:SWEep:[FREQuency]:POINts
[SOURce<HW>]:SWEep:[FREQuency]:RETRace
[SOURce<HW>]:SWEep:[FREQuency]:RUNNing
[SOURce<HW>]:SWEep:[FREQuency]:SHAPe
[SOURce<HW>]:SWEep:[FREQuency]:SPACing
Commands in total: 10
Subgroups: 2
Direct child commands: 7
get_dwell ( ) → float
set_dwell ( dwell: float ) → None
# [SOURce<HW>]:SWEep:[FREQuency]:DWELl
# get:
value: float = driver.source.sweep.frequency.get_dwell()
# set:
driver.source.sweep.frequency.set_dwell(dwell = 1.0)

Sets the dwell time for a frequency sweep step.

Parameters:

dwell – float

get_mode ( ) → AutoManStep
set_mode ( mode: AutoManStep ) → None
# [SOURce<HW>]:SWEep:[FREQuency]:MODE
# get:
value: enums.AutoManStep = driver.source.sweep.frequency.get_mode()
# set:
driver.source.sweep.frequency.set_mode(mode = enums.AutoManStep.AUTO)

Sets the cycle mode for the frequency sweep.

Parameters:

mode – AUTO | MANual | STEP

  • AUTO: Each trigger event triggers exactly one complete sweep.

  • MANual: The trigger system is not active. You can trigger every step individually by input of the frequencies with the command [:SOURcehw]:FREQuency:MANual.

  • STEP: Each trigger event triggers one sweep step. The frequency increases by the value entered with [:SOURcehw]:SWEep[:FREQuency]:STEP[:LINear] (linear spacing) or [:SOURcehw]:SWEep[:FREQuency]:STEP:LOGarithmic (logarithmic spacing) .

get_points ( ) → int
set_points ( points: int ) → None
# [SOURce<HW>]:SWEep:[FREQuency]:POINts
# get:
value: int = driver.source.sweep.frequency.get_points()
# set:
driver.source.sweep.frequency.set_points(points = 1)

Sets the number of steps within the RF frequency sweep range. Two separate POINts values are used for linear or logarithmic sweep spacing. This command always affects the currently set sweep spacing that you can set via the following command: SOURce<hw>:SWEep:FREQuency:SPACing LINear | LOGarithmic

Parameters:

points – integer

get_retrace ( ) → bool
set_retrace ( state: bool ) → None
# [SOURce<HW>]:SWEep:[FREQuency]:RETRace
# get:
value: bool = driver.source.sweep.frequency.get_retrace()
# set:
driver.source.sweep.frequency.set_retrace(state = False)

Activates that the signal changes to the start frequency value while it is waiting for the next trigger event. You can enable this feature, when you are working with sawtooth shapes in sweep mode Single or External Single.

Parameters:

state – 1 | ON | 0| OFF

get_running ( ) → bool
# [SOURce<HW>]:SWEep:[FREQuency]:RUNNing
value: bool = driver.source.sweep.frequency.get_running()

Queries the current sweep state.

Returns:

state: 1 | ON | 0| OFF

get_shape ( ) → SweCyclMode
set_shape ( shape: SweCyclMode ) → None
# [SOURce<HW>]:SWEep:[FREQuency]:SHAPe
# get:
value: enums.SweCyclMode = driver.source.sweep.frequency.get_shape()
# set:
driver.source.sweep.frequency.set_shape(shape = enums.SweCyclMode.SAWTooth)

Determines the waveform shape for a frequency sweep sequence.

Parameters:

shape – SAWTooth | TRIangle

get_spacing ( ) → Spacing
set_spacing ( spacing: Spacing ) → None
# [SOURce<HW>]:SWEep:[FREQuency]:SPACing
# get:
value: enums.Spacing = driver.source.sweep.frequency.get_spacing()
# set:
driver.source.sweep.frequency.set_spacing(spacing = enums.Spacing.LINear)

Selects the mode for the calculation of the frequency intervals, with which the current frequency at each step is increased or decreased. The keyword [:FREQuency] can be omitted; then the command is SCPI-compliant.

Parameters:

spacing – LINear | LOGarithmic

  • LINear: Sets a fixed frequency value as step width and adds it to the current frequency.The linear step width is entered in Hz, see [:SOURcehw]:SWEep[:FREQuency]:STEP[:LINear].

  • LOGarithmic: Sets a constant fraction of the current frequency as step width and adds it to the current frequency.The logarithmic step width is entered in %, see [:SOURcehw]:SWEep[:FREQuency]:STEP:LOGarithmic.

Cloning the Group

# Create a copy of the original group, that exists independently
frequency_copy = driver.source.sweep.frequency.clone()

Subgroups