Source code for rsrtx.Implementations.Search.Trigger.Milstd.Error.Timing

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, search: str, min_gap_select: bool) -> None: """ ``SEARch:TRIGger:MILStd:ERRor:TIMing`` \n Snippet: ``driver.search.trigger.milstd.error.timing.set(search = 'abc', min_gap_select = False)`` \n Enables search for errors if method ``RsRtx.search.trigger.milstd.typePy.set()`` is set to ERRor. Sets the end value of a pattern range for the corresponding search: \n - MANChester: error of the manchester coding - PARity: even parity (parity error) - SYNC: error of the synchronization - TIMing: Minimum gap is out of range :param min_gap_select: OFF | ON """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('min_gap_select', min_gap_select, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:MILStd:ERRor:TIMing {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:MILStd:ERRor:TIMing`` \n Snippet: ``value: bool = driver.search.trigger.milstd.error.timing.get(search = 'abc')`` \n Enables search for errors if method ``RsRtx.search.trigger.milstd.typePy.set()`` is set to ERRor. Sets the end value of a pattern range for the corresponding search: \n - MANChester: error of the manchester coding - PARity: even parity (parity error) - SYNC: error of the synchronization - TIMing: Minimum gap is out of range :return: min_gap_select: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:MILStd:ERRor:TIMing? {param}') return Conversions.str_to_bool(response)