Source code for rsrtx.Implementations.Search.Trigger.Sent.Smsg

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

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

[docs] def set(self, search: str, check_serial_msg: bool) -> None: """ ``SEARch:TRIGger:SENT:SMSG`` \n Snippet: ``driver.search.trigger.sent.smsg.set(search = 'abc', check_serial_msg = False)`` \n Enables the search in a serial message, which is combination of identifier and data conditions. To select the sequence condition, use method ``RsRtx.search.trigger.sent.stype.set()`` . To set the identifier condition for the serial message, use method ``RsRtx.search.trigger.sent.sicn.set()`` , method ``RsRtx.search.trigger.sent.simin.set()`` and method ``RsRtx.search.trigger.sent.simax.set()`` . To set the data condition, use method ``RsRtx.search.trigger.sent.sdcn.set()`` , method ``RsRtx.search.trigger.sent.sdmn.set()`` and method ``RsRtx.search.trigger.sent.sdmx.set()`` . :param check_serial_msg: OFF | ON """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('check_serial_msg', check_serial_msg, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:SENT:SMSG {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:SENT:SMSG`` \n Snippet: ``value: bool = driver.search.trigger.sent.smsg.get(search = 'abc')`` \n Enables the search in a serial message, which is combination of identifier and data conditions. To select the sequence condition, use method ``RsRtx.search.trigger.sent.stype.set()`` . To set the identifier condition for the serial message, use method ``RsRtx.search.trigger.sent.sicn.set()`` , method ``RsRtx.search.trigger.sent.simin.set()`` and method ``RsRtx.search.trigger.sent.simax.set()`` . To set the data condition, use method ``RsRtx.search.trigger.sent.sdcn.set()`` , method ``RsRtx.search.trigger.sent.sdmn.set()`` and method ``RsRtx.search.trigger.sent.sdmx.set()`` . :return: check_serial_msg: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:SENT:SMSG? {param}') return Conversions.str_to_bool(response)