from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RintervalCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rinterval", core, parent)
[docs]
def set(self, interval: float) -> None:
"""
``TRIGger[:SEQuence]:TIME:RINTerval`` \n
Snippet: ``driver.applications.k14Xnr5G.trigger.sequence.time.rinterval.set(interval = 1.0)`` \n
Defines the repetition interval for the time trigger.
:param interval: numeric value Range: 2 ms to 5000 s, Unit: S
"""
param = Conversions.decimal_value_to_str(interval)
self._core.io.write(f'TRIGger:SEQuence:TIME:RINTerval {param}')
[docs]
def get(self) -> float:
"""
``TRIGger[:SEQuence]:TIME:RINTerval`` \n
Snippet: ``value: float = driver.applications.k14Xnr5G.trigger.sequence.time.rinterval.get()`` \n
Defines the repetition interval for the time trigger.
:return: interval: numeric value Range: 2 ms to 5000 s, Unit: S
"""
response = self._core.io.query_str(f'TRIGger:SEQuence:TIME:RINTerval?')
return Conversions.str_to_float(response)