Power#

SCPI Commands :

[SOURce]:BB:MEASurement:POWer:ABORt
[SOURce]:BB:MEASurement:POWer:ACQuisition
[SOURce]:BB:MEASurement:POWer:DELete
[SOURce]:BB:MEASurement:POWer:DURation
[SOURce]:BB:MEASurement:POWer:GSOurce
[SOURce]:BB:MEASurement:POWer:INDex
[SOURce]:BB:MEASurement:POWer:OUTPut
[SOURce]:BB:MEASurement:POWer:PEAK
[SOURce]:BB:MEASurement:POWer:PROGress
[SOURce]:BB:MEASurement:POWer:RMODe
[SOURce]:BB:MEASurement:POWer:RMS
[SOURce]:BB:MEASurement:POWer:RSTate
[SOURce]:BB:MEASurement:POWer:SOURce
Commands in total: 16
Subgroups: 3
Direct child commands: 13
abort ( ) → None
abort_with_opc ( opc_timeout_ms: int = -1 ) → None
# [SOURce]:BB:MEASurement:POWer:ABORt
driver.source.bb.measurement.power.abort()
driver.source.bb.measurement.power.abort_with_opc(opc_timeout_ms = 3000)

Stops the current measurement.

abort_with_opc() does the same as abort(), but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout to set the timeout value.

Parameters:

opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.

get_acquisition ( ) → BbMeasPowAcq
set_acquisition ( acquistion: BbMeasPowAcq ) → None
# [SOURce]:BB:MEASurement:POWer:ACQuisition
# get:
value: enums.BbMeasPowAcq = driver.source.bb.measurement.power.get_acquisition()
# set:
driver.source.bb.measurement.power.set_acquisition(acquistion = enums.BbMeasPowAcq.CONTinuous)

Sets the acquisition method.

Parameters:

acquistion – NOMinal | CONTinuous | GATed | MGATed

delete ( ) → None
delete_with_opc ( opc_timeout_ms: int = -1 ) → None
# [SOURce]:BB:MEASurement:POWer:DELete
driver.source.bb.measurement.power.delete()
driver.source.bb.measurement.power.delete_with_opc(opc_timeout_ms = 3000)

Removes the selected measurement from the list.

delete_with_opc() does the same as delete(), but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout to set the timeout value.

Parameters:

opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.

get_duration ( ) → float
set_duration ( duration: float ) → None
# [SOURce]:BB:MEASurement:POWer:DURation
# get:
value: float = driver.source.bb.measurement.power.get_duration()
# set:
driver.source.bb.measurement.power.set_duration(duration = 1.0)

Sets the measurement’s time of a single measurement.

Parameters:

duration – float

get_gsource ( ) → BbMeasPowGateSour
set_gsource ( gate_source: BbMeasPowGateSour ) → None
# [SOURce]:BB:MEASurement:POWer:GSOurce
# get:
value: enums.BbMeasPowGateSour = driver.source.bb.measurement.power.get_gsource()
# set:
driver.source.bb.measurement.power.set_gsource(gate_source = enums.BbMeasPowGateSour.MARK1)

Determines the marker signal defining the signal part to be evaluated. The available values depend on the selected acquisition (method RsSmw.source.bb.measurement.power.acquisition() ) .

Parameters:

gate_source – NONE | MARK1 | MARK2 | MARK3 | MGATed

  • NONE: Default value for nominal and continuous acquisition.

  • MARK1 | MARK2 | MARK3: Marker signal as defined in the baseband

  • MGATed: Reserved for multi gated acquisition

get_index ( ) → int
set_index ( meas_index: int ) → None
# [SOURce]:BB:MEASurement:POWer:INDex
# get:
value: int = driver.source.bb.measurement.power.get_index()
# set:
driver.source.bb.measurement.power.set_index(meas_index = 1)

Selects the measurement index the subsequent settings apply to, for example changing, starting or removing form the list of measurements.

Parameters:

meas_index – integer

get_output ( ) → BbMeasPowOutp
set_output ( output: BbMeasPowOutp ) → None
# [SOURce]:BB:MEASurement:POWer:OUTPut
# get:
value: enums.BbMeasPowOutp = driver.source.bb.measurement.power.get_output()
# set:
driver.source.bb.measurement.power.set_output(output = enums.BbMeasPowOutp.BBMM1)

Defines the output point the measurement are performed at.

Parameters:

output – RFA | RFB | IQOUT1 | IQOUT2 | BBMM1 | BBMM2

get_peak ( ) → List[float]
# [SOURce]:BB:MEASurement:POWer:PEAK
value: List[float] = driver.source.bb.measurement.power.get_peak()

Queries the peak power of the baseband signal at the measurement point determined with the method RsSmw.source.bb.measurement.power.output() .

Returns:

peak_power: Returns the peak power of the measured signal or if a multi-gated acquisition is used, a string of measured values with one value per performed submeasurement

get_progress ( ) → float
# [SOURce]:BB:MEASurement:POWer:PROGress
value: float = driver.source.bb.measurement.power.get_progress()

Queries the status of the initiated measurement. The query returns a value that indicates the task progress in percent.

Returns:

progress: float

get_rmode ( ) → BlerTrigMode
set_rmode ( run_mode: BlerTrigMode ) → None
# [SOURce]:BB:MEASurement:POWer:RMODe
# get:
value: enums.BlerTrigMode = driver.source.bb.measurement.power.get_rmode()
# set:
driver.source.bb.measurement.power.set_rmode(run_mode = enums.BlerTrigMode.AUTO)

Determines whether a single or a continuous measurement is executed.

Parameters:

run_mode – SINGle | AUTO

get_rms ( ) → List[float]
# [SOURce]:BB:MEASurement:POWer:RMS
value: List[float] = driver.source.bb.measurement.power.get_rms()

Queries the RMS power of the baseband signal at the measurement point determined with the method RsSmw.source.bb.measurement.power.output() .

Returns:

rms_power: Returns the power of the measured signal or if a multi-gated acquisition is used, a string of measured values with one value per performed submeasurement

get_rstate ( ) → bool
# [SOURce]:BB:MEASurement:POWer:RSTate
value: bool = driver.source.bb.measurement.power.get_rstate()

Queries the state (running/stopped) of the current measurement.

Returns:

run_state: 1 | ON | 0| OFF

get_source ( ) → BbMeasPowSour
set_source ( source: BbMeasPowSour ) → None
# [SOURce]:BB:MEASurement:POWer:SOURce
# get:
value: enums.BbMeasPowSour = driver.source.bb.measurement.power.get_source()
# set:
driver.source.bb.measurement.power.set_source(source = enums.BbMeasPowSour.AWGNA)

Defines the measurement signal source.

Parameters:

source – BBA | BBB | BBC | BBD | BBINA | BBINB | FADINPA | FADINPB | FADINPC | FADINPD | FADOUTA | FADOUTB | FADOUTC | FADOUTD | AWGNA | AWGNB | AWGNC | AWGND | STREAMA | STREAMB | STREAMC | STREAMD

Cloning the Group

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

Subgroups