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
class PowerCls[source]

Power commands group definition. 10 total commands, 3 Subgroups, 7 group commands

get_amode() PowerAttMode[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:AMODe
value: enums.PowerAttMode = driver.source.sweep.power.get_amode()

No command help available

return:

amode: No help available

get_dwell() float[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:DWELl
value: float = driver.source.sweep.power.get_dwell()

Sets the dwell time for a level sweep step.

return:

dwell: float Range: 10E-3 to 100, Unit: s

get_mode() AutoManStep[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:MODE
value: enums.AutoManStep = driver.source.sweep.power.get_mode()

Sets the cycle mode for the level sweep.

return:

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 command [:SOURcehw]:POWer:MANual. The level value increases at each step by the value that you define with [:SOURcehw]:POWer:STEP[:INCRement]. Values directly entered with the command [:SOURcehw]:POWer:MANual are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with [:SOURcehw]:POWer:STEP[:INCRement].

get_points() int[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:POINts
value: int = driver.source.sweep.power.get_points()

Sets the number of steps within the RF level sweep range. See ‘Correlating parameters in sweep mode’.

return:

points: integer Range: 2 to Max

get_retrace() bool[source]
# SCPI: [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’.

return:

state: 1| ON| 0| OFF

get_running() bool[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:RUNNing
value: bool = driver.source.sweep.power.get_running()

Queries the current sweep state.

return:

state: 1| ON| 0| OFF

get_shape() SweCyclMode[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:SHAPe
value: enums.SweCyclMode = driver.source.sweep.power.get_shape()

Determines the waveform shape for a frequency sweep sequence.

return:

shape: SAWTooth| TRIangle

set_amode(amode: PowerAttMode) None[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:AMODe
driver.source.sweep.power.set_amode(amode = enums.PowerAttMode.AUTO)

No command help available

param amode:

No help available

set_dwell(dwell: float) None[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:DWELl
driver.source.sweep.power.set_dwell(dwell = 1.0)

Sets the dwell time for a level sweep step.

param dwell:

float Range: 10E-3 to 100, Unit: s

set_mode(mode: AutoManStep) None[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:MODE
driver.source.sweep.power.set_mode(mode = enums.AutoManStep.AUTO)

Sets the cycle mode for the level sweep.

param 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 command [:SOURcehw]:POWer:MANual. The level value increases at each step by the value that you define with [:SOURcehw]:POWer:STEP[:INCRement]. Values directly entered with the command [:SOURcehw]:POWer:MANual are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with [:SOURcehw]:POWer:STEP[:INCRement].

set_points(points: int) None[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:POINts
driver.source.sweep.power.set_points(points = 1)

Sets the number of steps within the RF level sweep range. See ‘Correlating parameters in sweep mode’.

param points:

integer Range: 2 to Max

set_retrace(state: bool) None[source]
# SCPI: [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’.

param state:

1| ON| 0| OFF

set_shape(shape: SweCyclMode) None[source]
# SCPI: [SOURce<HW>]:SWEep:POWer:SHAPe
driver.source.sweep.power.set_shape(shape = enums.SweCyclMode.SAWTooth)

Determines the waveform shape for a frequency sweep sequence.

param shape:

SAWTooth| TRIangle

Cloning the Group

# Create a clone of the original group, that exists independently
group2 = driver.source.sweep.power.clone()

Subgroups