from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class RintervalCls:
"""Rinterval commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rinterval", core, parent)
[docs] def set(self, interval: float) -> None:
"""SCPI: TRIGger[:SEQuence]:TIME:RINTerval \n
Snippet: driver.applications.k17Mcgd.trigger.sequence.time.rinterval.set(interval = 1.0) \n
Defines the repetition interval for the time trigger. \n
: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:
"""SCPI: TRIGger[:SEQuence]:TIME:RINTerval \n
Snippet: value: float = driver.applications.k17Mcgd.trigger.sequence.time.rinterval.get() \n
Defines the repetition interval for the time trigger. \n
: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)