Source code for RsSmbv.Implementations.Source.Bb.Nr5G.Output.TdWind.S30K

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class S30KCls: """S30K commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("s30K", core, parent)
[docs] def get_trtsamples(self) -> int: """SCPI: [SOURce<HW>]:BB:NR5G:OUTPut:TDWind:S30K:TRTSamples \n Snippet: value: int = driver.source.bb.nr5G.output.tdWind.s30K.get_trtsamples() \n Queries the number of transition samples. INTRO_CMD_HELP: 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 \n :return: transition_sampl: integer Range: 0 to 1000 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:S30K:TRTSamples?') return Conversions.str_to_int(response)
[docs] def get_tr_time(self) -> float: """SCPI: [SOURce<HW>]:BB:NR5G:OUTPut:TDWind:S30K:TRTime \n Snippet: value: float = driver.source.bb.nr5G.output.tdWind.s30K.get_tr_time() \n Sets the transition time when time domain windowing is active. INTRO_CMD_HELP: 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 \n :return: transition_time: float Range: 0 to 1E-5 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:S30K:TRTime?') return Conversions.str_to_float(response)
[docs] def set_tr_time(self, transition_time: float) -> None: """SCPI: [SOURce<HW>]:BB:NR5G:OUTPut:TDWind:S30K:TRTime \n Snippet: driver.source.bb.nr5G.output.tdWind.s30K.set_tr_time(transition_time = 1.0) \n Sets the transition time when time domain windowing is active. INTRO_CMD_HELP: 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 \n :param transition_time: float Range: 0 to 1E-5 """ param = Conversions.decimal_value_to_str(transition_time) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:S30K:TRTime {param}')