from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class RpControl:
"""RpControl commands group definition. 6 total commands, 1 Sub-groups, 4 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("rpControl", core, parent)
@property
def segment(self):
"""segment commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_segment'):
from .RpControl_.Segment import Segment
self._segment = Segment(self._core, self._base)
return self._segment
# noinspection PyTypeChecker
[docs] def get_pc_bits(self) -> enums.PowerCtrlBits:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:PCBits \n
Snippet: value: enums.PowerCtrlBits = driver.configure.rpControl.get_pc_bits() \n
Defines a power control bit pattern which the R&S CMW transmits to control the transmitter output power of the AT. \n
:return: pc_bits: AUTO | AUP | ADOWn | HOLD | PATTern AUTO: Active closed loop power control AUP: Power up bits ADOW: Power down bits HOLD: Alternating power up and power down bits PATT: Sends the user-specific segment bits executed by method RsCmwEvdoSig.Configure.RpControl.run.
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:RPControl:PCBits?')
return Conversions.str_to_scalar_enum(response, enums.PowerCtrlBits)
[docs] def set_pc_bits(self, pc_bits: enums.PowerCtrlBits) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:PCBits \n
Snippet: driver.configure.rpControl.set_pc_bits(pc_bits = enums.PowerCtrlBits.ADOWn) \n
Defines a power control bit pattern which the R&S CMW transmits to control the transmitter output power of the AT. \n
:param pc_bits: AUTO | AUP | ADOWn | HOLD | PATTern AUTO: Active closed loop power control AUP: Power up bits ADOW: Power down bits HOLD: Alternating power up and power down bits PATT: Sends the user-specific segment bits executed by method RsCmwEvdoSig.Configure.RpControl.run.
"""
param = Conversions.enum_scalar_to_str(pc_bits, enums.PowerCtrlBits)
self._core.io.write(f'CONFigure:EVDO:SIGNaling<Instance>:RPControl:PCBits {param}')
[docs] def get_ssize(self) -> float:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:SSIZe \n
Snippet: value: float = driver.configure.rpControl.get_ssize() \n
Gets/sets the power control step size, i.e. the nominal change in mean output power per single power control bit. \n
:return: ssize: Range: 0.5 dB to 1 dB, Unit: dB
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:RPControl:SSIZe?')
return Conversions.str_to_float(response)
[docs] def set_ssize(self, ssize: float) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:SSIZe \n
Snippet: driver.configure.rpControl.set_ssize(ssize = 1.0) \n
Gets/sets the power control step size, i.e. the nominal change in mean output power per single power control bit. \n
:param ssize: Range: 0.5 dB to 1 dB, Unit: dB
"""
param = Conversions.decimal_value_to_str(ssize)
self._core.io.write(f'CONFigure:EVDO:SIGNaling<Instance>:RPControl:SSIZe {param}')
# noinspection PyTypeChecker
[docs] def get_repetition(self) -> enums.Repeat:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:REPetition \n
Snippet: value: enums.Repeat = driver.configure.rpControl.get_repetition() \n
Specifies the repetition mode of the pattern execution. \n
:return: repetition: SINGleshot | CONTinuous SINGleshot: the pattern execution is stopped after a single-shot CONTinuous: the pattern execution is repeated continuously and stopped by the method RsCmwEvdoSig.Configure.RpControl.run
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:RPControl:REPetition?')
return Conversions.str_to_scalar_enum(response, enums.Repeat)
[docs] def set_repetition(self, repetition: enums.Repeat) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:REPetition \n
Snippet: driver.configure.rpControl.set_repetition(repetition = enums.Repeat.CONTinuous) \n
Specifies the repetition mode of the pattern execution. \n
:param repetition: SINGleshot | CONTinuous SINGleshot: the pattern execution is stopped after a single-shot CONTinuous: the pattern execution is repeated continuously and stopped by the method RsCmwEvdoSig.Configure.RpControl.run
"""
param = Conversions.enum_scalar_to_str(repetition, enums.Repeat)
self._core.io.write(f'CONFigure:EVDO:SIGNaling<Instance>:RPControl:REPetition {param}')
[docs] def get_run(self) -> bool:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:RUN \n
Snippet: value: bool = driver.configure.rpControl.get_run() \n
Starts and in continuous mode also stops the execution of the user-specific pattern. \n
:return: run_sequence_state: OFF | ON
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:RPControl:RUN?')
return Conversions.str_to_bool(response)
[docs] def set_run(self, run_sequence_state: bool) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:RPControl:RUN \n
Snippet: driver.configure.rpControl.set_run(run_sequence_state = False) \n
Starts and in continuous mode also stops the execution of the user-specific pattern. \n
:param run_sequence_state: OFF | ON
"""
param = Conversions.bool_to_str(run_sequence_state)
self._core.io.write(f'CONFigure:EVDO:SIGNaling<Instance>:RPControl:RUN {param}')
def clone(self) -> 'RpControl':
"""Clones the group by creating new object from it and its whole existing sub-groups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = RpControl(self._core, self._base.parent)
self._base.synchronize_repcaps(new_group)
return new_group