Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.MultiEval.Limit.Aclr.Utra.CarrierAggregation.ChannelBw1st.ChannelBw2nd

from ...........Internal.Core import Core
from ...........Internal.CommandsGroup import CommandsGroup
from ...........Internal.Types import DataType
from ...........Internal.StructBase import StructBase
from ...........Internal.ArgStruct import ArgStruct
from ...........Internal.ArgSingleList import ArgSingleList
from ...........Internal.ArgSingle import ArgSingle
from ...........Internal.RepeatedCapability import RepeatedCapability
from ........... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ChannelBw2ndCls: """ChannelBw2nd commands group definition. 2 total commands, 1 Subgroups, 1 group commands Repeated Capability: SecondChannelBw, default value after init: SecondChannelBw.Bw50""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("channelBw2nd", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_secondChannelBw_get', 'repcap_secondChannelBw_set', repcap.SecondChannelBw.Bw50) def repcap_secondChannelBw_set(self, secondChannelBw: repcap.SecondChannelBw) -> 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 SecondChannelBw.Default Default value after init: SecondChannelBw.Bw50""" self._cmd_group.set_repcap_enum_value(secondChannelBw) def repcap_secondChannelBw_get(self) -> repcap.SecondChannelBw: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value() @property def channelBw3rd(self): """channelBw3rd commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_channelBw3rd'): from .ChannelBw3rd import ChannelBw3rdCls self._channelBw3rd = ChannelBw3rdCls(self._core, self._cmd_group) return self._channelBw3rd
[docs] def set(self, relative_level: float or bool, absolute_level: float or bool, utraAdjChannel=repcap.UtraAdjChannel.Default, firstChannelBw=repcap.FirstChannelBw.Default, secondChannelBw=repcap.SecondChannelBw.Default) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:ACLR:UTRA<nr>:CAGGregation:CBANdwidth<Band1>:CBANdwidth<Band2> \n Snippet: driver.configure.lteMeas.multiEval.limit.aclr.utra.carrierAggregation.channelBw1st.channelBw2nd.set(relative_level = 1.0, absolute_level = 1.0, utraAdjChannel = repcap.UtraAdjChannel.Default, firstChannelBw = repcap.FirstChannelBw.Default, secondChannelBw = repcap.SecondChannelBw.Default) \n Defines relative and absolute limits for the ACLR measured in the first or second adjacent UTRA channel, depending on <no>. The settings are defined separately for each channel bandwidth combination, for two aggregated carriers. The following bandwidth combinations are supported: Example: For the first line in the figure, use ... :CBANdwidth100:CBANdwidth50. \n :param relative_level: (float or boolean) No help available :param absolute_level: (float or boolean) No help available :param utraAdjChannel: optional repeated capability selector. Default value: Ch1 (settable in the interface 'Utra') :param firstChannelBw: optional repeated capability selector. Default value: Bw100 (settable in the interface 'ChannelBw1st') :param secondChannelBw: optional repeated capability selector. Default value: Bw50 (settable in the interface 'ChannelBw2nd') """ param = ArgSingleList().compose_cmd_string(ArgSingle('relative_level', relative_level, DataType.FloatExt), ArgSingle('absolute_level', absolute_level, DataType.FloatExt)) utraAdjChannel_cmd_val = self._cmd_group.get_repcap_cmd_value(utraAdjChannel, repcap.UtraAdjChannel) firstChannelBw_cmd_val = self._cmd_group.get_repcap_cmd_value(firstChannelBw, repcap.FirstChannelBw) secondChannelBw_cmd_val = self._cmd_group.get_repcap_cmd_value(secondChannelBw, repcap.SecondChannelBw) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:ACLR:UTRA{utraAdjChannel_cmd_val}:CAGGregation:CBANdwidth{firstChannelBw_cmd_val}:CBANdwidth{secondChannelBw_cmd_val} {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class ChannelBw2ndStruct(StructBase): """Response structure. Fields: \n - Relative_Level: float or bool: No parameter help available - Absolute_Level: float or bool: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_float_ext('Relative_Level'), ArgStruct.scalar_float_ext('Absolute_Level')] def __init__(self): StructBase.__init__(self, self) self.Relative_Level: float or bool = None self.Absolute_Level: float or bool = None
[docs] def get(self, utraAdjChannel=repcap.UtraAdjChannel.Default, firstChannelBw=repcap.FirstChannelBw.Default, secondChannelBw=repcap.SecondChannelBw.Default) -> ChannelBw2ndStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:ACLR:UTRA<nr>:CAGGregation:CBANdwidth<Band1>:CBANdwidth<Band2> \n Snippet: value: ChannelBw2ndStruct = driver.configure.lteMeas.multiEval.limit.aclr.utra.carrierAggregation.channelBw1st.channelBw2nd.get(utraAdjChannel = repcap.UtraAdjChannel.Default, firstChannelBw = repcap.FirstChannelBw.Default, secondChannelBw = repcap.SecondChannelBw.Default) \n Defines relative and absolute limits for the ACLR measured in the first or second adjacent UTRA channel, depending on <no>. The settings are defined separately for each channel bandwidth combination, for two aggregated carriers. The following bandwidth combinations are supported: Example: For the first line in the figure, use ... :CBANdwidth100:CBANdwidth50. \n :param utraAdjChannel: optional repeated capability selector. Default value: Ch1 (settable in the interface 'Utra') :param firstChannelBw: optional repeated capability selector. Default value: Bw100 (settable in the interface 'ChannelBw1st') :param secondChannelBw: optional repeated capability selector. Default value: Bw50 (settable in the interface 'ChannelBw2nd') :return: structure: for return value, see the help for ChannelBw2ndStruct structure arguments.""" utraAdjChannel_cmd_val = self._cmd_group.get_repcap_cmd_value(utraAdjChannel, repcap.UtraAdjChannel) firstChannelBw_cmd_val = self._cmd_group.get_repcap_cmd_value(firstChannelBw, repcap.FirstChannelBw) secondChannelBw_cmd_val = self._cmd_group.get_repcap_cmd_value(secondChannelBw, repcap.SecondChannelBw) return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIMit:ACLR:UTRA{utraAdjChannel_cmd_val}:CAGGregation:CBANdwidth{firstChannelBw_cmd_val}:CBANdwidth{secondChannelBw_cmd_val}?', self.__class__.ChannelBw2ndStruct())
def clone(self) -> 'ChannelBw2ndCls': """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 = ChannelBw2ndCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group