Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.MsubFrames

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
class MsubFramesCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("msubFrames", core, parent)

[docs] def set(self, sub_frame_offset: int, sub_frame_count: int, meas_subframe: int) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSUBframes`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.msubFrames.set(sub_frame_offset = 1, sub_frame_count = 1, meas_subframe = 1)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('sub_frame_offset', sub_frame_offset, DataType.Integer), ArgSingle('sub_frame_count', sub_frame_count, DataType.Integer), ArgSingle('meas_subframe', meas_subframe, DataType.Integer)) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSUBframes {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class MsubFramesStruct(StructBase): """ Response structure. Fields: \n - 1 Sub_Frame_Offset: int: No parameter help available - 2 Sub_Frame_Count: int: No parameter help available - 3 Meas_Subframe: int: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_int('Sub_Frame_Offset'), ArgStruct.scalar_int('Sub_Frame_Count'), ArgStruct.scalar_int('Meas_Subframe')] def __init__(self): StructBase.__init__(self, self) self.Sub_Frame_Offset: int = None self.Sub_Frame_Count: int = None self.Meas_Subframe: int = None
[docs] def get(self) -> MsubFramesStruct: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSUBframes`` \n Snippet: ``value: MsubFramesStruct = driver.configure.nrSubMeas.multiEval.msubFrames.get()`` \n No help available :return: structure: for return value, see the help for MsubFramesStruct structure arguments. """ return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MSUBframes?', self.__class__.MsubFramesStruct())