from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DoubleCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("double", core, parent)
[docs]
def get_delay(self) -> float:
"""
``[SOURce<HW>]:PULM:DOUBle:DELay`` \n
Snippet: ``value: float = driver.source.pulm.double.get_delay()`` \n
Sets the delay from the start of the first pulse to the start of the second pulse.
:return: delay: float
"""
response = self._core.io.query_str('SOURce<HwInstance>:PULM:DOUBle:DELay?')
return Conversions.str_to_float(response)
[docs]
def set_delay(self, delay: float) -> None:
"""
``[SOURce<HW>]:PULM:DOUBle:DELay`` \n
Snippet: ``driver.source.pulm.double.set_delay(delay = 1.0)`` \n
Sets the delay from the start of the first pulse to the start of the second pulse.
:param delay: float
"""
param = Conversions.decimal_value_to_str(delay)
self._core.io.write(f'SOURce<HwInstance>:PULM:DOUBle:DELay {param}')
[docs]
def get_width(self) -> float:
"""
``[SOURce<HW>]:PULM:DOUBle:WIDTh`` \n
Snippet: ``value: float = driver.source.pulm.double.get_width()`` \n
Sets the width of the second pulse.
:return: width: float
"""
response = self._core.io.query_str('SOURce<HwInstance>:PULM:DOUBle:WIDTh?')
return Conversions.str_to_float(response)
[docs]
def set_width(self, width: float) -> None:
"""
``[SOURce<HW>]:PULM:DOUBle:WIDTh`` \n
Snippet: ``driver.source.pulm.double.set_width(width = 1.0)`` \n
Sets the width of the second pulse.
:param width: float
"""
param = Conversions.decimal_value_to_str(width)
self._core.io.write(f'SOURce<HwInstance>:PULM:DOUBle:WIDTh {param}')