Source code for rsrtx.Implementations.Mtest.Result.Violation.Start

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


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

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

[docs] def get(self, mask_test: str, mtestViolation=repcap.MtestViolation.Default) -> float: """ ``MTESt:RESult:VIOLation<*>:STARt`` \n Snippet: ``value: float = driver.mtest.result.violation.start.get(mask_test = 'abc', mtestViolation = repcap.MtestViolation.Default)`` \n Return the start and stop time of the slice with the indicated violation. :param mtestViolation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Violation') :return: xstart: -100 to 100 """ param = Conversions.value_to_quoted_str(mask_test) mtestViolation_cmd_val = self._cmd_group.get_repcap_cmd_value(mtestViolation, repcap.MtestViolation) response = self._core.io.query_str_with_opc(f'MTESt:RESult:VIOLation{mtestViolation_cmd_val}:STARt? {param}') return Conversions.str_to_float(response)