from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class GateCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("gate", core, parent)
[docs]
def get_start(self) -> float:
"""
``POWer:SLEWrate:GATE:STARt`` \n
Snippet: ``value: float = driver.power.slewrate.gate.get_start()`` \n
Sets the value for the cursor.
"""
response = self._core.io.query_str('POWer:SLEWrate:GATE:STARt?')
return Conversions.str_to_float(response)
[docs]
def set_start(self, t_0: float) -> None:
"""
``POWer:SLEWrate:GATE:STARt`` \n
Snippet: ``driver.power.slewrate.gate.set_start(t_0 = 1.0)`` \n
Sets the value for the cursor.
"""
param = Conversions.decimal_value_to_str(t_0)
self._core.io.write(f'POWer:SLEWrate:GATE:STARt {param}')
[docs]
def get_stop(self) -> float:
"""
``POWer:SLEWrate:GATE:STOP`` \n
Snippet: ``value: float = driver.power.slewrate.gate.get_stop()`` \n
Sets the value for the cursor.
"""
response = self._core.io.query_str('POWer:SLEWrate:GATE:STOP?')
return Conversions.str_to_float(response)
[docs]
def set_stop(self, t_1: float) -> None:
"""
``POWer:SLEWrate:GATE:STOP`` \n
Snippet: ``driver.power.slewrate.gate.set_stop(t_1 = 1.0)`` \n
Sets the value for the cursor.
"""
param = Conversions.decimal_value_to_str(t_1)
self._core.io.write(f'POWer:SLEWrate:GATE:STOP {param}')