Power
SCPI Commands :
[SOURce<HW>]:SWEep:POWer:AMODe
[SOURce<HW>]:SWEep:POWer:DWELl
[SOURce<HW>]:SWEep:POWer:MODE
[SOURce<HW>]:SWEep:POWer:POINts
[SOURce<HW>]:SWEep:POWer:RETRace
[SOURce<HW>]:SWEep:POWer:RUNNing
[SOURce<HW>]:SWEep:POWer:SHAPe
- Commands in total: 10Subgroups: 3Direct child commands: 7
- get_amode() PowerAttMode[source]
# [SOURce<HW>]:SWEep:POWer:AMODe value: enums.PowerAttMode = driver.source.sweep.power.get_amode()
Selects the power attenuator mode for the level sweep.
- Returns:
amode: NORMal | HPOWer NORMal Performs the level settings in the range of the built-in attenuator. HPOWer Performs the level settings in the high level range.
- get_dwell() float[source]
# [SOURce<HW>]:SWEep:POWer:DWELl value: float = driver.source.sweep.power.get_dwell()
Sets the dwell time for a level sweep step.
- Returns:
dwell: float Range: 0.001 to 100
- get_mode() AutoManStep[source]
# [SOURce<HW>]:SWEep:POWer:MODE value: enums.AutoManStep = driver.source.sweep.power.get_mode()
Sets the cycle mode for the level sweep.
- Returns:
mode: AUTO | MANual | STEP AUTO Each trigger triggers exactly one complete sweep. MANual The trigger system is not active. You can trigger every step individually with the method
RsSmw.source.power.manual(). The level value increases at each step by the value that you define with methodRsSmw.source.power.step.increment(). Values directly entered with the methodRsSmw.source.power.manual()are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with methodRsSmw.source.power.step.increment().
- get_points() int[source]
# [SOURce<HW>]:SWEep:POWer:POINts value: int = driver.source.sweep.power.get_points()
Sets the number of steps within the RF level sweep range.
- Returns:
points: integer Range: 2 to Max
- get_retrace() bool[source]
# [SOURce<HW>]:SWEep:POWer:RETRace value: bool = driver.source.sweep.power.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:POWer:RUNNing value: bool = driver.source.sweep.power.get_running()
Queries the current sweep state.
- Returns:
state: 1 | ON | 0| OFF
- get_shape() SweCyclMode[source]
# [SOURce<HW>]:SWEep:POWer:SHAPe value: enums.SweCyclMode = driver.source.sweep.power.get_shape()
Determines the waveform shape for a frequency sweep sequence.
- Returns:
shape: SAWTooth | TRIangle
- set_amode(amode: PowerAttMode) None[source]
# [SOURce<HW>]:SWEep:POWer:AMODe driver.source.sweep.power.set_amode(amode = enums.PowerAttMode.AUTO)
Selects the power attenuator mode for the level sweep.
- Parameters:
amode – NORMal | HPOWer NORMal Performs the level settings in the range of the built-in attenuator. HPOWer Performs the level settings in the high level range.
- set_dwell(dwell: float) None[source]
# [SOURce<HW>]:SWEep:POWer:DWELl driver.source.sweep.power.set_dwell(dwell = 1.0)
Sets the dwell time for a level sweep step.
- Parameters:
dwell – float Range: 0.001 to 100
- set_mode(mode: AutoManStep) None[source]
# [SOURce<HW>]:SWEep:POWer:MODE driver.source.sweep.power.set_mode(mode = enums.AutoManStep.AUTO)
Sets the cycle mode for the level sweep.
- Parameters:
mode – AUTO | MANual | STEP AUTO Each trigger triggers exactly one complete sweep. MANual The trigger system is not active. You can trigger every step individually with the method
RsSmw.source.power.manual(). The level value increases at each step by the value that you define with methodRsSmw.source.power.step.increment(). Values directly entered with the methodRsSmw.source.power.manual()are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with methodRsSmw.source.power.step.increment().
- set_points(points: int) None[source]
# [SOURce<HW>]:SWEep:POWer:POINts driver.source.sweep.power.set_points(points = 1)
Sets the number of steps within the RF level sweep range.
- Parameters:
points – integer Range: 2 to Max
- set_retrace(state: bool) None[source]
# [SOURce<HW>]:SWEep:POWer:RETRace driver.source.sweep.power.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:POWer:SHAPe driver.source.sweep.power.set_shape(shape = enums.SweCyclMode.SAWTooth)
Determines the waveform shape for a frequency sweep sequence.
- Parameters:
shape – SAWTooth | TRIangle
Cloning the Group
# Create a copy of the original group, that exists independently
power_copy = driver.source.sweep.power.clone()
Subgroups