from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FallCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fall", core, parent)
[docs]
def get_time(self) -> float:
"""
``[SOURce<HW>]:BB:PRAMp:RAMP:FALL:TIME`` \n
Snippet: ``value: float = driver.source.bb.pramp.ramp.fall.get_time()`` \n
Sets the fall time of the power sweep signal.
:return: fall_time: float Range: 5E-9 to 1
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:PRAMp:RAMP:FALL:TIME?')
return Conversions.str_to_float(response)
[docs]
def set_time(self, fall_time: float) -> None:
"""
``[SOURce<HW>]:BB:PRAMp:RAMP:FALL:TIME`` \n
Snippet: ``driver.source.bb.pramp.ramp.fall.set_time(fall_time = 1.0)`` \n
Sets the fall time of the power sweep signal.
:param fall_time: float Range: 5E-9 to 1
"""
param = Conversions.decimal_value_to_str(fall_time)
self._core.io.write(f'SOURce<HwInstance>:BB:PRAMp:RAMP:FALL:TIME {param}')