Source code for rsrtx.Implementations.Power.Switching.Gate.Toff

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


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

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

[docs] def get_start(self) -> float: """ ``POWer:SWITching:GATE:TOFF:STARt`` \n Snippet: ``value: float = driver.power.switching.gate.toff.get_start()`` \n Sets the value for the respective cursor. """ response = self._core.io.query_str('POWer:SWITching:GATE:TOFF:STARt?') return Conversions.str_to_float(response)
[docs] def set_start(self, t_2: float) -> None: """ ``POWer:SWITching:GATE:TOFF:STARt`` \n Snippet: ``driver.power.switching.gate.toff.set_start(t_2 = 1.0)`` \n Sets the value for the respective cursor. """ param = Conversions.decimal_value_to_str(t_2) self._core.io.write(f'POWer:SWITching:GATE:TOFF:STARt {param}')
[docs] def get_stop(self) -> float: """ ``POWer:SWITching:GATE:TOFF:STOP`` \n Snippet: ``value: float = driver.power.switching.gate.toff.get_stop()`` \n Sets the value for the respective cursor. """ response = self._core.io.query_str('POWer:SWITching:GATE:TOFF:STOP?') return Conversions.str_to_float(response)
[docs] def set_stop(self, t_3: float) -> None: """ ``POWer:SWITching:GATE:TOFF:STOP`` \n Snippet: ``driver.power.switching.gate.toff.set_stop(t_3 = 1.0)`` \n Sets the value for the respective cursor. """ param = Conversions.decimal_value_to_str(t_3) self._core.io.write(f'POWer:SWITching:GATE:TOFF:STOP {param}')