Source code for rsrtx.Implementations.AdvJitter.Result.Phorizontal

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


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

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

[docs] def set(self, dd_and_phorizontal: bool, advJitter=repcap.AdvJitter.Default) -> None: """ ``ADVJitter<*>:RESult:PHORizontal`` \n Snippet: ``driver.advJitter.result.phorizontal.set(dd_and_phorizontal = False, advJitter = repcap.AdvJitter.Default)`` \n If enabled, adds horizontal periodic components to the data-dependent synthetic eye. :param dd_and_phorizontal: OFF | ON :param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter') """ param = Conversions.bool_to_str(dd_and_phorizontal) advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter) self._core.io.write(f'ADVJitter{advJitter_cmd_val}:RESult:PHORizontal {param}')
[docs] def get(self, advJitter=repcap.AdvJitter.Default) -> bool: """ ``ADVJitter<*>:RESult:PHORizontal`` \n Snippet: ``value: bool = driver.advJitter.result.phorizontal.get(advJitter = repcap.AdvJitter.Default)`` \n If enabled, adds horizontal periodic components to the data-dependent synthetic eye. :param advJitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'AdvJitter') """ advJitter_cmd_val = self._cmd_group.get_repcap_cmd_value(advJitter, repcap.AdvJitter) response = self._core.io.query_str(f'ADVJitter{advJitter_cmd_val}:RESult:PHORizontal?') return Conversions.str_to_bool(response)