Source code for RsCmwGsmMeas.Implementations.Configure_.MultiEval_.Limit_.Gmsk_.Smodulation_.Mpoint

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from .......Internal.RepeatedCapability import RepeatedCapability
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Mpoint: """Mpoint commands group definition. 1 total commands, 0 Sub-groups, 1 group commands Repeated Capability: MeasPoint, default value after init: MeasPoint.Nr1""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("mpoint", core, parent) self._base.rep_cap = RepeatedCapability(self._base.group_name, 'repcap_measPoint_get', 'repcap_measPoint_set', repcap.MeasPoint.Nr1) def repcap_measPoint_set(self, enum_value: repcap.MeasPoint) -> 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 MeasPoint.Default Default value after init: MeasPoint.Nr1""" self._base.set_repcap_enum_value(enum_value) def repcap_measPoint_get(self) -> repcap.MeasPoint: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._base.get_repcap_enum_value() # noinspection PyTypeChecker
[docs] class MpointStruct(StructBase): """Structure for setting input parameters. Fields: \n - Min_Pow_Level_Rel: float: numeric Relative power limit applicable below the low reference power Range: -120 dB to 31.5 dB, Unit: dB - Max_Pow_Level_Rel: float: numeric Relative power limit applicable above the high reference power Range: -120 dB to 31.5 dB, Unit: dB - Abs_Power_Level: float: numeric Alternative absolute power limit. If the relative limits are tighter than the absolute limit, the latter applies. Range: -120 dBm to 31.5 dBm, Unit: dBm - Enable: bool: OFF | ON ON: Enable limits for the given no OFF: Disable limits for the given no""" __meta_args_list = [ ArgStruct.scalar_float('Min_Pow_Level_Rel'), ArgStruct.scalar_float('Max_Pow_Level_Rel'), ArgStruct.scalar_float('Abs_Power_Level'), ArgStruct.scalar_bool('Enable')] def __init__(self): StructBase.__init__(self, self) self.Min_Pow_Level_Rel: float = None self.Max_Pow_Level_Rel: float = None self.Abs_Power_Level: float = None self.Enable: bool = None
[docs] def set(self, structure: MpointStruct, measPoint=repcap.MeasPoint.Default) -> None: """SCPI: CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:GMSK:SMODulation:MPOint<nr> \n Snippet: driver.configure.multiEval.limit.gmsk.smodulation.mpoint.set(value = [PROPERTY_STRUCT_NAME](), measPoint = repcap.MeasPoint.Default) \n Defines and activates a limit line for the modulation scheme GMSK for a certain frequency offset. The specified limits apply above the high power reference value and below the low power reference value defined by method RsCmwGsmMeas. Configure.MultiEval.Limit.Gmsk.Smodulation.rpower. Between the two reference power values, the limits are determined by linear interpolation. \n :param structure: for set value, see the help for MpointStruct structure arguments. :param measPoint: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mpoint')""" measPoint_cmd_val = self._base.get_repcap_cmd_value(measPoint, repcap.MeasPoint) self._core.io.write_struct(f'CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:GMSK:SMODulation:MPOint{measPoint_cmd_val}', structure)
[docs] def get(self, measPoint=repcap.MeasPoint.Default) -> MpointStruct: """SCPI: CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:GMSK:SMODulation:MPOint<nr> \n Snippet: value: MpointStruct = driver.configure.multiEval.limit.gmsk.smodulation.mpoint.get(measPoint = repcap.MeasPoint.Default) \n Defines and activates a limit line for the modulation scheme GMSK for a certain frequency offset. The specified limits apply above the high power reference value and below the low power reference value defined by method RsCmwGsmMeas. Configure.MultiEval.Limit.Gmsk.Smodulation.rpower. Between the two reference power values, the limits are determined by linear interpolation. \n :param measPoint: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mpoint') :return: structure: for return value, see the help for MpointStruct structure arguments.""" measPoint_cmd_val = self._base.get_repcap_cmd_value(measPoint, repcap.MeasPoint) return self._core.io.query_struct(f'CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:GMSK:SMODulation:MPOint{measPoint_cmd_val}?', self.__class__.MpointStruct())
def clone(self) -> 'Mpoint': """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 = Mpoint(self._core, self._base.parent) self._base.synchronize_repcaps(new_group) return new_group