Source code for RsCmwWlanMeas.Implementations.Configure.MultiEval.ListPy.Segment.Scount

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 ...... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ScountCls: """Scount commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("scount", core, parent)
[docs] def set(self, stat_count_mod: int, stat_count_sem: int, segmentB=repcap.SegmentB.Default) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent<segment>:SCOunt \n Snippet: driver.configure.multiEval.listPy.segment.scount.set(stat_count_mod = 1, stat_count_sem = 1, segmentB = repcap.SegmentB.Default) \n Specifies the modulation and spectrum statistical length for segment <no> in list mode. \n :param stat_count_mod: numeric No. of burst to be measured during modulation measurements Range: 1 to 2000 :param stat_count_sem: numeric No. of bursts to be measured during spectrum measurements Range: 1 to 1000 :param segmentB: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') """ param = ArgSingleList().compose_cmd_string(ArgSingle('stat_count_mod', stat_count_mod, DataType.Integer), ArgSingle('stat_count_sem', stat_count_sem, DataType.Integer)) segmentB_cmd_val = self._cmd_group.get_repcap_cmd_value(segmentB, repcap.SegmentB) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent{segmentB_cmd_val}:SCOunt {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class ScountStruct(StructBase): """Response structure. Fields: \n - Stat_Count_Mod: int: numeric No. of burst to be measured during modulation measurements Range: 1 to 2000 - Stat_Count_Sem: int: numeric No. of bursts to be measured during spectrum measurements Range: 1 to 1000""" __meta_args_list = [ ArgStruct.scalar_int('Stat_Count_Mod'), ArgStruct.scalar_int('Stat_Count_Sem')] def __init__(self): StructBase.__init__(self, self) self.Stat_Count_Mod: int = None self.Stat_Count_Sem: int = None
[docs] def get(self, segmentB=repcap.SegmentB.Default) -> ScountStruct: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent<segment>:SCOunt \n Snippet: value: ScountStruct = driver.configure.multiEval.listPy.segment.scount.get(segmentB = repcap.SegmentB.Default) \n Specifies the modulation and spectrum statistical length for segment <no> in list mode. \n :param segmentB: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') :return: structure: for return value, see the help for ScountStruct structure arguments.""" segmentB_cmd_val = self._cmd_group.get_repcap_cmd_value(segmentB, repcap.SegmentB) return self._core.io.query_struct(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:SEGMent{segmentB_cmd_val}:SCOunt?', self.__class__.ScountStruct())