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: 10Subgroups: 2Direct child commands: 7
- get_dwell() float[source]
# [SOURce<HW>]:SWEep:[FREQuency]:DWELl value: float = driver.source.sweep.frequency.get_dwell()
Sets the dwell time for a frequency sweep step.
- Returns:
dwell: float Range: 0.001 to 100
- get_mode() AutoManStep[source]
# [SOURce<HW>]:SWEep:[FREQuency]:MODE value: enums.AutoManStep = driver.source.sweep.frequency.get_mode()
Sets the cycle mode for the frequency sweep.
- Returns:
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 method
RsSmw.source.frequency.manual(). STEP Each trigger event triggers one sweep step. The frequency increases by the value entered with methodRsSmw.source.sweep.frequency.step.linear()(linear spacing) or methodRsSmw.source.sweep.frequency.step.logarithmic()(logarithmic spacing) .
- get_points() int[source]
# [SOURce<HW>]:SWEep:[FREQuency]:POINts value: int = driver.source.sweep.frequency.get_points()
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
- Returns:
points: integer Range: 2 to Max
- get_retrace() bool[source]
# [SOURce<HW>]:SWEep:[FREQuency]:RETRace value: bool = driver.source.sweep.frequency.get_retrace()
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’.
- Returns:
state: 1 | ON | 0| OFF
- get_running() bool[source]
# [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[source]
# [SOURce<HW>]:SWEep:[FREQuency]:SHAPe value: enums.SweCyclMode = driver.source.sweep.frequency.get_shape()
Determines the waveform shape for a frequency sweep sequence.
- Returns:
shape: SAWTooth | TRIangle
- get_spacing() Spacing[source]
# [SOURce<HW>]:SWEep:[FREQuency]:SPACing value: enums.Spacing = driver.source.sweep.frequency.get_spacing()
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.
- Returns:
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 method
RsSmw.source.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 methodRsSmw.source.sweep.frequency.step.logarithmic().
- set_dwell(dwell: float) None[source]
# [SOURce<HW>]:SWEep:[FREQuency]:DWELl driver.source.sweep.frequency.set_dwell(dwell = 1.0)
Sets the dwell time for a frequency sweep step.
- Parameters:
dwell – float Range: 0.001 to 100
- set_mode(mode: AutoManStep) None[source]
# [SOURce<HW>]:SWEep:[FREQuency]:MODE 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 method
RsSmw.source.frequency.manual(). STEP Each trigger event triggers one sweep step. The frequency increases by the value entered with methodRsSmw.source.sweep.frequency.step.linear()(linear spacing) or methodRsSmw.source.sweep.frequency.step.logarithmic()(logarithmic spacing) .
- set_points(points: int) None[source]
# [SOURce<HW>]:SWEep:[FREQuency]:POINts 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 Range: 2 to Max
- set_retrace(state: bool) None[source]
# [SOURce<HW>]:SWEep:[FREQuency]:RETRace 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
- set_shape(shape: SweCyclMode) None[source]
# [SOURce<HW>]:SWEep:[FREQuency]:SHAPe driver.source.sweep.frequency.set_shape(shape = enums.SweCyclMode.SAWTooth)
Determines the waveform shape for a frequency sweep sequence.
- Parameters:
shape – SAWTooth | TRIangle
- set_spacing(spacing: Spacing) None[source]
# [SOURce<HW>]:SWEep:[FREQuency]:SPACing 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 method
RsSmw.source.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 methodRsSmw.source.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