from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DelayCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("delay", core, parent)
[docs]
def get_grid(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:BIRThdeath:DELay:GRID`` \n
Snippet: ``value: float = driver.source.fsimulator.birthDeath.delay.get_grid()`` \n
Sets the delay grid for both paths with birth death propagation fading.
:return: grid: float Range: 1E-9 to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:BIRThdeath:DELay:GRID?')
return Conversions.str_to_float(response)
[docs]
def set_grid(self, grid: float) -> None:
"""
``[SOURce<HW>]:FSIMulator:BIRThdeath:DELay:GRID`` \n
Snippet: ``driver.source.fsimulator.birthDeath.delay.set_grid(grid = 1.0)`` \n
Sets the delay grid for both paths with birth death propagation fading.
:param grid: float Range: 1E-9 to dynamic
"""
param = Conversions.decimal_value_to_str(grid)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:BIRThdeath:DELay:GRID {param}')
[docs]
def get_maximum(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:BIRThdeath:DELay:MAXimum`` \n
Snippet: ``value: float = driver.source.fsimulator.birthDeath.delay.get_maximum()`` \n
Queries the minimum or maximum delay for both paths with birth death propagation fading.
:return: maximum: float Range: 0 to max
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:BIRThdeath:DELay:MAXimum?')
return Conversions.str_to_float(response)
[docs]
def get_minimum(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:BIRThdeath:DELay:MINimum`` \n
Snippet: ``value: float = driver.source.fsimulator.birthDeath.delay.get_minimum()`` \n
Queries the minimum or maximum delay for both paths with birth death propagation fading.
:return: minimum: float Range: 0 to max
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:BIRThdeath:DELay:MINimum?')
return Conversions.str_to_float(response)
[docs]
def set_minimum(self, minimum: float) -> None:
"""
``[SOURce<HW>]:FSIMulator:BIRThdeath:DELay:MINimum`` \n
Snippet: ``driver.source.fsimulator.birthDeath.delay.set_minimum(minimum = 1.0)`` \n
Queries the minimum or maximum delay for both paths with birth death propagation fading.
"""
param = Conversions.decimal_value_to_str(minimum)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:BIRThdeath:DELay:MINimum {param}')