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

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
from ..... import enums


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

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

[docs] def set(self, search: str, null_frame: enums.BusBitCondition) -> None: """ ``SEARch:TRIGger:FLXRay:NUFRame`` \n Snippet: ``driver.search.trigger.flxRay.nuFrame.set(search = 'abc', null_frame = enums.BusBitCondition.DC)`` \n Searches for the null frame indicator bit, a frame without usable data. :param null_frame: Bit value: 1, 0, or X (don't care) """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('null_frame', null_frame, DataType.Enum, enums.BusBitCondition)) self._core.io.write(f'SEARch:TRIGger:FLXRay:NUFRame {param}'.rstrip())
# noinspection PyTypeChecker
[docs] def get(self, search: str) -> enums.BusBitCondition: """ ``SEARch:TRIGger:FLXRay:NUFRame`` \n Snippet: ``value: enums.BusBitCondition = driver.search.trigger.flxRay.nuFrame.get(search = 'abc')`` \n Searches for the null frame indicator bit, a frame without usable data. :return: null_frame: Bit value: 1, 0, or X (don't care) """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:NUFRame? {param}') return Conversions.str_to_scalar_enum(response, enums.BusBitCondition)