Source code for rsrtx.Implementations.Search.Trigger.Milstd.Cdst.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, search: str, info_patt_min: int) -> None: """ ``SEARch:TRIGger:MILStd:CDST:IMIN`` \n Snippet: ``driver.search.trigger.milstd.cdst.imin.set(search = 'abc', info_patt_min = 1)`` \n Sets the pattern or the start value of a pattern range for the corresponding search: \n - CDST:IMIN - specific info for the 9th to 19th bit of a command or status word. - CMD:CMIN - specific data word count or mode code pattern in a command word - CMD:SMIN - specific subaddress/mode pattern in a command word - DATA:DMIN - data pattern in a data word """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('info_patt_min', info_patt_min, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:MILStd:CDST:IMIN {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:MILStd:CDST:IMIN`` \n Snippet: ``value: int = driver.search.trigger.milstd.cdst.imin.get(search = 'abc')`` \n Sets the pattern or the start value of a pattern range for the corresponding search: \n - CDST:IMIN - specific info for the 9th to 19th bit of a command or status word. - CMD:CMIN - specific data word count or mode code pattern in a command word - CMD:SMIN - specific subaddress/mode pattern in a command word - DATA:DMIN - data pattern in a data word """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:MILStd:CDST:IMIN? {param}') return Conversions.str_to_int(response)