Source code for RsCMPX_LteMeas.Implementations.LteMeas.MultiEval.Dmarker.Pmonitor.Cc

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ......Internal.Types import DataType
from ......Internal.RepeatedCapability import RepeatedCapability
from ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class CcCls: """Cc commands group definition. 1 total commands, 0 Subgroups, 1 group commands Repeated Capability: CarrierComponent, default value after init: CarrierComponent.Nr1""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("cc", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_carrierComponent_get', 'repcap_carrierComponent_set', repcap.CarrierComponent.Nr1) def repcap_carrierComponent_set(self, carrierComponent: repcap.CarrierComponent) -> None: """Repeated Capability default value numeric suffix. This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to CarrierComponent.Default Default value after init: CarrierComponent.Nr1""" self._cmd_group.set_repcap_enum_value(carrierComponent) def repcap_carrierComponent_get(self) -> repcap.CarrierComponent: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value()
[docs] def fetch(self, xvalue: int or bool, deltaMarker=repcap.DeltaMarker.Default, carrierComponent=repcap.CarrierComponent.Default) -> float: """SCPI: FETCh:LTE:MEASurement<Instance>:MEValuation:DMARker<No>:PMONitor:CC<Nr> \n Snippet: value: float = driver.lteMeas.multiEval.dmarker.pmonitor.cc.fetch(xvalue = 1, deltaMarker = repcap.DeltaMarker.Default, carrierComponent = repcap.CarrierComponent.Default) \n Uses the markers 1 and 2 with relative values on the power monitor trace. \n Suppressed linked return values: reliability \n :param xvalue: (integer or boolean) X-value of the marker position relative to the x-value of the reference marker (in subframes) :param deltaMarker: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Dmarker') :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: yvalue: Y-value of the marker position relative to the y-value of the reference marker""" param = Conversions.decimal_or_bool_value_to_str(xvalue) deltaMarker_cmd_val = self._cmd_group.get_repcap_cmd_value(deltaMarker, repcap.DeltaMarker) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'FETCh:LTE:MEASurement<Instance>:MEValuation:DMARker{deltaMarker_cmd_val}:PMONitor:CC{carrierComponent_cmd_val}? {param}', suppressed) return Conversions.str_to_float(response)
def clone(self) -> 'CcCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = CcCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group