Spc

SCPI Commands :

[SOURce<HW>]:POWer:SPC:CRANge
[SOURce<HW>]:POWer:SPC:DELay
[SOURce<HW>]:POWer:SPC:MODE
[SOURce<HW>]:POWer:SPC:PEAK
[SOURce<HW>]:POWer:SPC:SELect
[SOURce<HW>]:POWer:SPC:STATe
[SOURce<HW>]:POWer:SPC:TARGet
[SOURce<HW>]:POWer:SPC:WARNing
Commands in total: 10
Subgroups: 2
Direct child commands: 8
get_crange() float[source]
# [SOURce<HW>]:POWer:SPC:CRANge
value: float = driver.source.power.spc.get_crange()

Defines the capture range of the power control system. Within the range: Target Level +/- Catch Range the power control locks and tries to achieve the target level. Readings outside the range are not considered.

Returns:

pow_cntrl_crange: float Range: 0 to 50

get_delay() int[source]
# [SOURce<HW>]:POWer:SPC:DELay
value: int = driver.source.power.spc.get_delay()

Sets a waiting time for the generator to adjust the output level. After the delay time has elapsed, the power sensor measures the next value.

Returns:

pow_cntrl_delay: integer Range: 0 to 1000

get_mode() SensorModeAll[source]
# [SOURce<HW>]:POWer:SPC:MODE
value: enums.SensorModeAll = driver.source.power.spc.get_mode()

Selects the measurement mode for the power sensor.

Returns:

control_mode: AUTO | SINGle AUTO Measures the level values continuously. SINGle Executes one measurement, triggered by the command method RsSmw.source.power.spc.single.set() .

get_peak() bool[source]
# [SOURce<HW>]:POWer:SPC:PEAK
value: bool = driver.source.power.spc.get_peak()

Activates power control by means of the peak power values, provided the power sensor supports this function.

Returns:

pow_cntrl_peak: 1 | ON | 0| OFF

get_select() PowCntrlSelect[source]
# [SOURce<HW>]:POWer:SPC:SELect
value: enums.PowCntrlSelect = driver.source.power.spc.get_select()

Selects the power sensor used for power control.

Returns:

pow_cntrl_select: SENS1 | SENS2 | SENS3 | SENS4 | SENSor1 | SENSor2 | SENSor3 | SENSor4

get_state() bool[source]
# [SOURce<HW>]:POWer:SPC:STATe
value: bool = driver.source.power.spc.get_state()

Starts power control using the selected sensor. The control loop periodically adjusts the output level of the signal generator. After switching off, the running loop is completed.

Returns:

pow_cntrl_state: 1 | ON | 0| OFF

get_target() float[source]
# [SOURce<HW>]:POWer:SPC:TARGet
value: float = driver.source.power.spc.get_target()

Sets the target level required at the DUT. To define the unit of the power value, use method RsSmw.unit.power() .

Returns:

pow_cntrl_target: float Range: -50 to 30

get_warning_py() bool[source]
# [SOURce<HW>]:POWer:SPC:WARNing
value: bool = driver.source.power.spc.get_warning_py()

Queries if the activated power control works properly. If the power control does not work, the query returns warning state 1. On the screen, the R&S SMW200A indicates a warning icon.

Returns:

warning_state: 1 | ON | 0| OFF

set_crange(pow_cntrl_crange: float) None[source]
# [SOURce<HW>]:POWer:SPC:CRANge
driver.source.power.spc.set_crange(pow_cntrl_crange = 1.0)

Defines the capture range of the power control system. Within the range: Target Level +/- Catch Range the power control locks and tries to achieve the target level. Readings outside the range are not considered.

Parameters:

pow_cntrl_crange – float Range: 0 to 50

set_delay(pow_cntrl_delay: int) None[source]
# [SOURce<HW>]:POWer:SPC:DELay
driver.source.power.spc.set_delay(pow_cntrl_delay = 1)

Sets a waiting time for the generator to adjust the output level. After the delay time has elapsed, the power sensor measures the next value.

Parameters:

pow_cntrl_delay – integer Range: 0 to 1000

set_mode(control_mode: SensorModeAll) None[source]
# [SOURce<HW>]:POWer:SPC:MODE
driver.source.power.spc.set_mode(control_mode = enums.SensorModeAll.AUTO)

Selects the measurement mode for the power sensor.

Parameters:

control_mode – AUTO | SINGle AUTO Measures the level values continuously. SINGle Executes one measurement, triggered by the command method RsSmw.source.power.spc.single.set() .

set_peak(pow_cntrl_peak: bool) None[source]
# [SOURce<HW>]:POWer:SPC:PEAK
driver.source.power.spc.set_peak(pow_cntrl_peak = False)

Activates power control by means of the peak power values, provided the power sensor supports this function.

Parameters:

pow_cntrl_peak – 1 | ON | 0| OFF

set_select(pow_cntrl_select: PowCntrlSelect) None[source]
# [SOURce<HW>]:POWer:SPC:SELect
driver.source.power.spc.set_select(pow_cntrl_select = enums.PowCntrlSelect.SENS1)

Selects the power sensor used for power control.

Parameters:

pow_cntrl_select – SENS1 | SENS2 | SENS3 | SENS4 | SENSor1 | SENSor2 | SENSor3 | SENSor4

set_state(pow_cntrl_state: bool) None[source]
# [SOURce<HW>]:POWer:SPC:STATe
driver.source.power.spc.set_state(pow_cntrl_state = False)

Starts power control using the selected sensor. The control loop periodically adjusts the output level of the signal generator. After switching off, the running loop is completed.

Parameters:

pow_cntrl_state – 1 | ON | 0| OFF

set_target(pow_cntrl_target: float) None[source]
# [SOURce<HW>]:POWer:SPC:TARGet
driver.source.power.spc.set_target(pow_cntrl_target = 1.0)

Sets the target level required at the DUT. To define the unit of the power value, use method RsSmw.unit.power() .

Parameters:

pow_cntrl_target – float Range: -50 to 30

Cloning the Group

# Create a copy of the original group, that exists independently
spc_copy = driver.source.power.spc.clone()

Subgroups