from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TperiodCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tperiod", core, parent)
[docs]
def set(self, state: enums.TperiodState) -> None:
"""
``[SENSe]:NR5G:DEMod:TPERiod`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.demod.tperiod.set(state = enums.TperiodState.US10)`` \n
Selects the time period of the transient.
:param state: US2 | US4 | US7 | US10 Transient period in us. Available transient periods depend on the selected subcarrier spacing.
"""
param = Conversions.enum_scalar_to_str(state, enums.TperiodState)
self._core.io.write(f'SENSe:NR5G:DEMod:TPERiod {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.TperiodState:
"""
``[SENSe]:NR5G:DEMod:TPERiod`` \n
Snippet: ``value: enums.TperiodState = driver.applications.k14Xnr5G.sense.nr5G.demod.tperiod.get()`` \n
Selects the time period of the transient.
:return: state: US2 | US4 | US7 | US10 Transient period in us. Available transient periods depend on the selected subcarrier spacing.
"""
response = self._core.io.query_str(f'SENSe:NR5G:DEMod:TPERiod?')
return Conversions.str_to_scalar_enum(response, enums.TperiodState)