Source code for RsCmwBluetoothMeas.Implementations.Configure.MultiEval.Limit.Qhsl.P3Q

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class P3QCls: """P3Q commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("p3Q", core, parent) # noinspection PyTypeChecker
[docs] class DevmStruct(StructBase): # From WriteStructDefinition CmdPropertyTemplate.xml """Structure for setting input parameters. Fields: \n - Rms: float: No parameter help available - Peak: float: No parameter help available - P_99: float: No parameter help available - Rms_Enabled: List[bool]: No parameter help available - Peak_Enabled: List[bool]: No parameter help available - P_99_Enabled: bool: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_float('Rms'), ArgStruct.scalar_float('Peak'), ArgStruct.scalar_float('P_99'), ArgStruct('Rms_Enabled', DataType.BooleanList, None, False, False, 3), ArgStruct('Peak_Enabled', DataType.BooleanList, None, False, False, 3), ArgStruct.scalar_bool('P_99_Enabled')] def __init__(self): StructBase.__init__(self, self) self.Rms: float = None self.Peak: float = None self.P_99: float = None self.Rms_Enabled: List[bool] = None self.Peak_Enabled: List[bool] = None self.P_99_Enabled: bool = None
[docs] def get_devm(self) -> DevmStruct: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:QHSL:P3Q:DEVM \n Snippet: value: DevmStruct = driver.configure.multiEval.limit.qhsl.p3Q.get_devm() \n No command help available \n :return: structure: for return value, see the help for DevmStruct structure arguments. """ return self._core.io.query_struct('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:QHSL:P3Q:DEVM?', self.__class__.DevmStruct())
[docs] def set_devm(self, value: DevmStruct) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:QHSL:P3Q:DEVM \n Snippet with structure: \n structure = driver.configure.multiEval.limit.qhsl.p3Q.DevmStruct() \n structure.Rms: float = 1.0 \n structure.Peak: float = 1.0 \n structure.P_99: float = 1.0 \n structure.Rms_Enabled: List[bool] = [True, False, True] \n structure.Peak_Enabled: List[bool] = [True, False, True] \n structure.P_99_Enabled: bool = False \n driver.configure.multiEval.limit.qhsl.p3Q.set_devm(value = structure) \n No command help available \n :param value: see the help for DevmStruct structure arguments. """ self._core.io.write_struct('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:QHSL:P3Q:DEVM', value)