Source code for RsCMPX_UwbMeas.Implementations.UwbMeas.MultiEval.StsSequence.Content

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ContentCls: """Content commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("content", core, parent) # noinspection PyTypeChecker
[docs] class ResultData(StructBase): """Response structure. Fields: \n - Reliabiltiy: int: 'Reliability indicator' - Content: List[str]: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_int('Reliabiltiy'), ArgStruct('Content', DataType.RawStringList, None, False, True, 1)] def __init__(self): StructBase.__init__(self, self) self.Reliabiltiy: int = None self.Content: List[str] = None
[docs] def fetch(self, ppdu=repcap.Ppdu.Nr1) -> ResultData: """SCPI: FETCh:UWB:MEASurement<Instance>:MEValuation:STSSequence:CONTent<PPDU> \n Snippet: value: ResultData = driver.uwbMeas.multiEval.stsSequence.content.fetch(ppdu = repcap.Ppdu.Nr1) \n Returns the content of the STS sequence received from the DUT. \n :param ppdu: optional repeated capability selector. Default value: Nr1 :return: structure: for return value, see the help for ResultData structure arguments.""" ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu) return self._core.io.query_struct(f'FETCh:UWB:MEASurement<Instance>:MEValuation:STSSequence:CONTent{ppdu_cmd_val}?', self.__class__.ResultData())
[docs] def read(self, ppdu=repcap.Ppdu.Nr1) -> ResultData: """SCPI: READ:UWB:MEASurement<Instance>:MEValuation:STSSequence:CONTent<PPDU> \n Snippet: value: ResultData = driver.uwbMeas.multiEval.stsSequence.content.read(ppdu = repcap.Ppdu.Nr1) \n Returns the content of the STS sequence received from the DUT. \n :param ppdu: optional repeated capability selector. Default value: Nr1 :return: structure: for return value, see the help for ResultData structure arguments.""" ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu) return self._core.io.query_struct(f'READ:UWB:MEASurement<Instance>:MEValuation:STSSequence:CONTent{ppdu_cmd_val}?', self.__class__.ResultData())