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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EndcCls:
	"""
	| Commands in total: 2
	| Subgroups: 1
	| Direct child commands: 1
	"""

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

	@property
	def eutra(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_eutra'):
			from .Eutra import EutraCls
			self._eutra = EutraCls(self._core, self._cmd_group)
		return self._eutra

[docs] def get_value(self) -> bool: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:ENDC`` \n Snippet: ``value: bool = driver.configure.nrSubMeas.multiEval.endc.get_value()`` \n Enables or disables the EN-DC mode of the measurement. :return: on_off: OFF | ON """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:ENDC?') return Conversions.str_to_bool(response)
[docs] def set_value(self, on_off: bool) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:ENDC`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.endc.set_value(on_off = False)`` \n Enables or disables the EN-DC mode of the measurement. :param on_off: OFF | ON """ param = Conversions.bool_to_str(on_off) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:ENDC {param}')
def clone(self) -> 'EndcCls': """ 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 = EndcCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group