Source code for rsrtx.Implementations.RefCurve.Offset

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


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

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

[docs] def get(self, refCurve=repcap.RefCurve.Default) -> float: """ ``REFCurve<*>:OFFSet`` \n Snippet: ``value: float = driver.refCurve.offset.get(refCurve = repcap.RefCurve.Default)`` \n Returns the vertical offset of the indicated reference waveform. :param refCurve: optional repeated capability selector. Default value: Nr1 (settable in the interface 'RefCurve') :return: vertical_offset: -100E+24 to 100E+24 """ refCurve_cmd_val = self._cmd_group.get_repcap_cmd_value(refCurve, repcap.RefCurve) response = self._core.io.query_str_with_opc(f'REFCurve{refCurve_cmd_val}:OFFSet?') return Conversions.str_to_float(response)