Source code for rsrtx.Implementations.Search.Trigger.Milstd.Status.Terminal

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

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

[docs] def set(self, search: str, terminal_flag: enums.BusBitCondition) -> None: """ ``SEARch:TRIGger:MILStd:STATus:TERMinal`` \n Snippet: ``driver.search.trigger.milstd.status.terminal.set(search = 'abc', terminal_flag = enums.BusBitCondition.DC)`` \n Specifies the values (0, 1, X) of the status flags if method ``RsRtx.search.trigger.milstd.typePy.set()`` is set to STATword. :param terminal_flag: ONE | ZERO | DC """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('terminal_flag', terminal_flag, DataType.Enum, enums.BusBitCondition)) self._core.io.write(f'SEARch:TRIGger:MILStd:STATus:TERMinal {param}'.rstrip())
# noinspection PyTypeChecker
[docs] def get(self, search: str) -> enums.BusBitCondition: """ ``SEARch:TRIGger:MILStd:STATus:TERMinal`` \n Snippet: ``value: enums.BusBitCondition = driver.search.trigger.milstd.status.terminal.get(search = 'abc')`` \n Specifies the values (0, 1, X) of the status flags if method ``RsRtx.search.trigger.milstd.typePy.set()`` is set to STATword. :return: terminal_flag: ONE | ZERO | DC """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:MILStd:STATus:TERMinal? {param}') return Conversions.str_to_scalar_enum(response, enums.BusBitCondition)