Source code for RsCmwNrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Mslot

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 enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MslotCls: """Mslot commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mslot", core, parent)
[docs] def set(self, measure_slot: enums.MeasureSlot, meas_slot_no: int = None) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSLot \n Snippet: driver.configure.nrSubMeas.multiEval.mslot.set(measure_slot = enums.MeasureSlot.ALL, meas_slot_no = 1) \n Selects which slots of the captured subframes of the first radio frame are evaluated. \n :param measure_slot: ALL | UDEF ALL: all scheduled UL slots UDEF: single slot selected via MeasSlotNo :param meas_slot_no: numeric Slot number for MeasureSlot=UDEF The slot must be in the first radio frame (number of slots per subframe depends on SCS) . And the slot must be within the captured number of subframes, see method RsCmwNrFr1Meas.Configure.NrSubMeas.MultiEval.nsubFrames. Range: 0 to 39 """ param = ArgSingleList().compose_cmd_string(ArgSingle('measure_slot', measure_slot, DataType.Enum, enums.MeasureSlot), ArgSingle('meas_slot_no', meas_slot_no, DataType.Integer, None, is_optional=True)) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSLot {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class MslotStruct(StructBase): """Response structure. Fields: \n - Measure_Slot: enums.MeasureSlot: ALL | UDEF ALL: all scheduled UL slots UDEF: single slot selected via MeasSlotNo - Meas_Slot_No: int: numeric Slot number for MeasureSlot=UDEF The slot must be in the first radio frame (number of slots per subframe depends on SCS) . And the slot must be within the captured number of subframes, see [CMDLINKRESOLVED Configure.NrSubMeas.MultiEval#NsubFrames CMDLINKRESOLVED]. Range: 0 to 39""" __meta_args_list = [ ArgStruct.scalar_enum('Measure_Slot', enums.MeasureSlot), ArgStruct.scalar_int('Meas_Slot_No')] def __init__(self): StructBase.__init__(self, self) self.Measure_Slot: enums.MeasureSlot = None self.Meas_Slot_No: int = None
[docs] def get(self) -> MslotStruct: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSLot \n Snippet: value: MslotStruct = driver.configure.nrSubMeas.multiEval.mslot.get() \n Selects which slots of the captured subframes of the first radio frame are evaluated. \n :return: structure: for return value, see the help for MslotStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSLot?', self.__class__.MslotStruct())