Source code for rsrtx.Implementations.Search.Trigger.FlxRay.BssError

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 BssErrorCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, search: str, bss_error: bool) -> None: """ ``SEARch:TRIGger:FLXRay:BSSerror`` \n Snippet: ``driver.search.trigger.flxRay.bssError.set(search = 'abc', bss_error = False)`` \n Searches for error in SyteStart Sequence. The BSS is transmitted before each byte. :param bss_error: OFF | ON """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('bss_error', bss_error, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:FLXRay:BSSerror {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:FLXRay:BSSerror`` \n Snippet: ``value: bool = driver.search.trigger.flxRay.bssError.get(search = 'abc')`` \n Searches for error in SyteStart Sequence. The BSS is transmitted before each byte. :return: bss_error: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:BSSerror? {param}') return Conversions.str_to_bool(response)