Source code for RsSmw.Implementations.Source.Bb.Arbitrary.Coupled.Trigger.Delay

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


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

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

[docs] def get_offset(self) -> float: """ ``[SOURce<HW>]:BB:ARBitrary:COUPled:TRIGger:DELay:OFFSet`` \n Snippet: ``value: float = driver.source.bb.arbitrary.coupled.trigger.delay.get_offset()`` \n Sets a time delay to delay the waveform processing of a particular baseband. :return: offset: float Range: 0 to 2147483647/clockrate """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:COUPled:TRIGger:DELay:OFFSet?') return Conversions.str_to_float(response)
[docs] def set_offset(self, offset: float) -> None: """ ``[SOURce<HW>]:BB:ARBitrary:COUPled:TRIGger:DELay:OFFSet`` \n Snippet: ``driver.source.bb.arbitrary.coupled.trigger.delay.set_offset(offset = 1.0)`` \n Sets a time delay to delay the waveform processing of a particular baseband. :param offset: float Range: 0 to 2147483647/clockrate """ param = Conversions.decimal_value_to_str(offset) self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:COUPled:TRIGger:DELay:OFFSet {param}')