Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Tpc.Limit

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


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

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

	@property
	def ptolerance(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ptolerance'):
			from .Ptolerance import PtoleranceCls
			self._ptolerance = PtoleranceCls(self._core, self._cmd_group)
		return self._ptolerance

[docs] def get_ttolerance(self) -> float: """ ``CONFigure:NRSub:MEASurement<Instance>:TPC:LIMit:TTOLerance`` \n Snippet: ``value: float = driver.configure.nrSubMeas.tpc.limit.get_ttolerance()`` \n Defines the test tolerance (TT) for the limit check. :return: test_tolerance: numeric """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:TPC:LIMit:TTOLerance?') return Conversions.str_to_float(response)
[docs] def set_ttolerance(self, test_tolerance: float) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:TPC:LIMit:TTOLerance`` \n Snippet: ``driver.configure.nrSubMeas.tpc.limit.set_ttolerance(test_tolerance = 1.0)`` \n Defines the test tolerance (TT) for the limit check. :param test_tolerance: numeric """ param = Conversions.decimal_value_to_str(test_tolerance) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:TPC:LIMit:TTOLerance {param}')
def clone(self) -> 'LimitCls': """ 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 = LimitCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group