Source code for rsmxo.Implementations.Trigger.Sbsw.Spmi.Frame.Fld.Dmin

from typing import List

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import repcap


# 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, data_min: List[int], frame=repcap.Frame.Default, field=repcap.Field.Default) -> None: """ ``TRIGger:SBSW:SPMI:FRAMe<*>:FLD<*>:DMIN`` \n Snippet: ``driver.trigger.sbsw.spmi.frame.fld.dmin.set(data_min = [1, 2, 3], frame = repcap.Frame.Default, field = repcap.Field.Default)`` \n Specifies the data pattern, or sets the start value of a data pattern range for the software trigger. :param frame: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Frame') :param field: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Fld') """ param = Conversions.list_to_csv_str(data_min) frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame) field_cmd_val = self._cmd_group.get_repcap_cmd_value(field, repcap.Field) self._core.io.write(f'TRIGger:SBSW:SPMI:FRAMe{frame_cmd_val}:FLD{field_cmd_val}:DMIN {param}')
[docs] def get(self, frame=repcap.Frame.Default, field=repcap.Field.Default) -> List[int]: """ ``TRIGger:SBSW:SPMI:FRAMe<*>:FLD<*>:DMIN`` \n Snippet: ``value: List[int] = driver.trigger.sbsw.spmi.frame.fld.dmin.get(frame = repcap.Frame.Default, field = repcap.Field.Default)`` \n Specifies the data pattern, or sets the start value of a data pattern range for the software trigger. :param frame: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Frame') :param field: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Fld') """ frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame) field_cmd_val = self._cmd_group.get_repcap_cmd_value(field, repcap.Field) response = self._core.io.query_bin_or_ascii_int_list(f'TRIGger:SBSW:SPMI:FRAMe{frame_cmd_val}:FLD{field_cmd_val}:DMIN?') return response