Source code for rsmxo.Implementations.Trigger.Sbsw.Manch.Imin

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

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

[docs] def set(self, frame: str, field: str, data: int) -> None: """ ``TRIGger:SBSW:MANCh:IMIN`` \n Snippet: ``driver.trigger.sbsw.manch.imin.set(frame = 'abc', field = 'abc', data = 1)`` \n Specifies the index, or sets the start value of an index range for the software trigger. """ param = ArgSingleList().compose_cmd_string(ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('data', data, DataType.Integer)) self._core.io.write(f'TRIGger:SBSW:MANCh:IMIN {param}'.rstrip())
[docs] def get(self) -> int: """ ``TRIGger:SBSW:MANCh:IMIN`` \n Snippet: ``value: int = driver.trigger.sbsw.manch.imin.get()`` \n Specifies the index, or sets the start value of an index range for the software trigger. """ response = self._core.io.query_str(f'TRIGger:SBSW:MANCh:IMIN?') return Conversions.str_to_int(response)