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

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class EvMagnitudeCls: """EvMagnitude commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("evMagnitude", core, parent) @property def evmSymbol(self): """evmSymbol commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_evmSymbol'): from .EvmSymbol import EvmSymbolCls self._evmSymbol = EvmSymbolCls(self._core, self._cmd_group) return self._evmSymbol
[docs] def get_value(self) -> bool: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude \n Snippet: value: bool = driver.configure.nrSubMeas.multiEval.result.evMagnitude.get_value() \n No command help available \n :return: enable: No help available """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude?') return Conversions.str_to_bool(response)
[docs] def set_value(self, enable: bool) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude \n Snippet: driver.configure.nrSubMeas.multiEval.result.evMagnitude.set_value(enable = False) \n No command help available \n :param enable: No help available """ param = Conversions.bool_to_str(enable) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:RESult:EVMagnitude {param}')
def clone(self) -> 'EvMagnitudeCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = EvMagnitudeCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group