Source code for RsSmw.Implementations.Source.Bb.Eutra.Setting.Tmod

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TmodCls: """Tmod commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tmod", core, parent)
[docs] def get_tdd(self) -> str: """SCPI: [SOURce<HW>]:BB:EUTRa:SETTing:TMOD:TDD \n Snippet: value: str = driver.source.bb.eutra.setting.tmod.get_tdd() \n Selects a predefined test model as defined in . \n :return: tdd: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:SETTing:TMOD:TDD?') return trim_str_response(response)
[docs] def set_tdd(self, tdd: str) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:SETTing:TMOD:TDD \n Snippet: driver.source.bb.eutra.setting.tmod.set_tdd(tdd = 'abc') \n Selects a predefined test model as defined in . \n :param tdd: test_model_name """ param = Conversions.value_to_quoted_str(tdd) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:SETTing:TMOD:TDD {param}')