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

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


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

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

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