from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class S120KCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("s120K", core, parent)
[docs]
def get_trtsamples(self) -> int:
"""
``[SOURce<HW>]:BB:NR5G:OUTPut:TDWind:S120K:TRTSamples`` \n
Snippet: ``value: int = driver.source.bb.nr5G.output.tdWind.s120K.get_trtsamples()`` \n
Queries the number of transition samples.
The next to last block in the command syntax indicates the used SCS and CP combination. \n
- DL: SE<SCS>K, where E indicates the extended CP or for normal CP, the designation is omitted
:return: transition_sampl: integer Range: 0 to 1000
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:S120K:TRTSamples?')
return Conversions.str_to_int(response)
[docs]
def get_tr_time(self) -> float:
"""
``[SOURce<HW>]:BB:NR5G:OUTPut:TDWind:S120K:TRTime`` \n
Snippet: ``value: float = driver.source.bb.nr5G.output.tdWind.s120K.get_tr_time()`` \n
Sets the transition time when time domain windowing is active.
The next to last block in the command syntax indicates the used SCS and CP combination. \n
- DL: SE<SCS>K, where E indicates the extended CP or for normal CP, the designation is omitted
:return: transition_time: float Range: 0 to 1E-5
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:S120K:TRTime?')
return Conversions.str_to_float(response)