Source code for RsCmwLteMeas.Implementations.Configure.MultiEval.Bler.Sframes

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SframesCls: """Sframes commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("sframes", core, parent)
[docs] def set(self, sub_frames: int, sched_subfr_per_fr: int = None) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:BLER:SFRames \n Snippet: driver.configure.multiEval.bler.sframes.set(sub_frames = 1, sched_subfr_per_fr = 1) \n Specifies the statistic count (number of measured subframes) and the number of scheduled subframes per radio frame for the BLER measurement. BLER is a single shot measurement. \n :param sub_frames: integer Number of subframes to be measured Range: 1 subframe to 200E+3 subframes :param sched_subfr_per_fr: integer Number of scheduled subframes per radio frame in the generated downlink signal Range: 1 subframe to 10 subframes """ param = ArgSingleList().compose_cmd_string(ArgSingle('sub_frames', sub_frames, DataType.Integer), ArgSingle('sched_subfr_per_fr', sched_subfr_per_fr, DataType.Integer, None, is_optional=True)) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:BLER:SFRames {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class SframesStruct(StructBase): """Response structure. Fields: \n - Sub_Frames: int: integer Number of subframes to be measured Range: 1 subframe to 200E+3 subframes - Sched_Subfr_Per_Fr: int: integer Number of scheduled subframes per radio frame in the generated downlink signal Range: 1 subframe to 10 subframes""" __meta_args_list = [ ArgStruct.scalar_int('Sub_Frames'), ArgStruct.scalar_int('Sched_Subfr_Per_Fr')] def __init__(self): StructBase.__init__(self, self) self.Sub_Frames: int = None self.Sched_Subfr_Per_Fr: int = None
[docs] def get(self) -> SframesStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:BLER:SFRames \n Snippet: value: SframesStruct = driver.configure.multiEval.bler.sframes.get() \n Specifies the statistic count (number of measured subframes) and the number of scheduled subframes per radio frame for the BLER measurement. BLER is a single shot measurement. \n :return: structure: for return value, see the help for SframesStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:BLER:SFRames?', self.__class__.SframesStruct())