Source code for rsmxo.Implementations.Trigger.Sbsw.Sent.Dmin

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.Utilities import trim_str_response
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, frame: str, field: str, data: str) -> None: """ ``TRIGger:SBSW:SENT:DMIN`` \n Snippet: ``driver.trigger.sbsw.sent.dmin.set(frame = 'abc', field = 'abc', data = 'abc')`` \n Specifies the data pattern, or sets the start value of a data pattern range for the software trigger. """ param = ArgSingleList().compose_cmd_string(ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('data', data, DataType.String)) self._core.io.write(f'TRIGger:SBSW:SENT:DMIN {param}'.rstrip())
[docs] def get(self) -> str: """ ``TRIGger:SBSW:SENT:DMIN`` \n Snippet: ``value: str = driver.trigger.sbsw.sent.dmin.get()`` \n Specifies the data pattern, or sets the start value of a data pattern range for the software trigger. """ response = self._core.io.query_str(f'TRIGger:SBSW:SENT:DMIN?') return trim_str_response(response)