Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Result.EvMagnitude.EvmSymbol

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

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

[docs] def set(self, enable: bool, symbol: int, low_high: enums.LowHigh) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.result.evMagnitude.evmSymbol.set(enable = False, symbol = 1, low_high = enums.LowHigh.HIGH)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('enable', enable, DataType.Boolean), ArgSingle('symbol', symbol, DataType.Integer), ArgSingle('low_high', low_high, DataType.Enum, enums.LowHigh)) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class EvmSymbolStruct(StructBase): """ Response structure. Fields: \n - 1 Enable: bool: No parameter help available - 2 Symbol: int: No parameter help available - 3 Low_High: enums.LowHigh: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_bool('Enable'), ArgStruct.scalar_int('Symbol'), ArgStruct.scalar_enum('Low_High', enums.LowHigh)] def __init__(self): StructBase.__init__(self, self) self.Enable: bool = None self.Symbol: int = None self.Low_High: enums.LowHigh = None
[docs] def get(self) -> EvmSymbolStruct: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol`` \n Snippet: ``value: EvmSymbolStruct = driver.configure.nrSubMeas.multiEval.result.evMagnitude.evmSymbol.get()`` \n No help available :return: structure: for return value, see the help for EvmSymbolStruct structure arguments. """ return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol?', self.__class__.EvmSymbolStruct())