Source code for rsmxo.Implementations.Trigger.Sbsw.Nrzu.Frame.Fld.Doperator

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


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

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

[docs] def set(self, data_operator: enums.OperatorB, frame=repcap.Frame.Default, field=repcap.Field.Default) -> None: """ ``TRIGger:SBSW:NRZU:FRAMe<*>:FLD<*>:DOPerator`` \n Snippet: ``driver.trigger.sbsw.nrzu.frame.fld.doperator.set(data_operator = enums.OperatorB.EQUal, frame = repcap.Frame.Default, field = repcap.Field.Default)`` \n Sets the operator for the data pattern of the software trigger in the selected field of the selected frame. :param data_operator: EQUal | NEQual | LTHan | LETHan | GTHan | GETHan | INRange | OORange :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.enum_scalar_to_str(data_operator, enums.OperatorB) 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:NRZU:FRAMe{frame_cmd_val}:FLD{field_cmd_val}:DOPerator {param}')
# noinspection PyTypeChecker
[docs] def get(self, frame=repcap.Frame.Default, field=repcap.Field.Default) -> enums.OperatorB: """ ``TRIGger:SBSW:NRZU:FRAMe<*>:FLD<*>:DOPerator`` \n Snippet: ``value: enums.OperatorB = driver.trigger.sbsw.nrzu.frame.fld.doperator.get(frame = repcap.Frame.Default, field = repcap.Field.Default)`` \n Sets the operator for the data pattern of the software trigger in the selected field of the selected frame. :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') :return: data_operator: EQUal | NEQual | LTHan | LETHan | GTHan | GETHan | INRange | OORange """ 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_str(f'TRIGger:SBSW:NRZU:FRAMe{frame_cmd_val}:FLD{field_cmd_val}:DOPerator?') return Conversions.str_to_scalar_enum(response, enums.OperatorB)