Source code for rsmxo.Implementations.Histogram.Window.Horizontal.Absolute.Start

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


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

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

[docs] def set(self, start: float, histogram=repcap.Histogram.Default) -> None: """ ``HISTogram<*>:WINDow:HORizontal:ABSolute:STARt`` \n Snippet: ``driver.histogram.window.horizontal.absolute.start.set(start = 1.0, histogram = repcap.Histogram.Default)`` \n Set the horizontal window limits as absolute values. Enter the unit of the horizontal axis together with the value. :param start: -1E+26 to 1E+26 :param histogram: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Histogram') """ param = Conversions.decimal_value_to_str(start) histogram_cmd_val = self._cmd_group.get_repcap_cmd_value(histogram, repcap.Histogram) self._core.io.write(f'HISTogram{histogram_cmd_val}:WINDow:HORizontal:ABSolute:STARt {param}')
[docs] def get(self, histogram=repcap.Histogram.Default) -> float: """ ``HISTogram<*>:WINDow:HORizontal:ABSolute:STARt`` \n Snippet: ``value: float = driver.histogram.window.horizontal.absolute.start.get(histogram = repcap.Histogram.Default)`` \n Set the horizontal window limits as absolute values. Enter the unit of the horizontal axis together with the value. :param histogram: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Histogram') """ histogram_cmd_val = self._cmd_group.get_repcap_cmd_value(histogram, repcap.Histogram) response = self._core.io.query_str(f'HISTogram{histogram_cmd_val}:WINDow:HORizontal:ABSolute:STARt?') return Conversions.str_to_float(response)