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 SbTransientCls:
"""SbTransient commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sbTransient", core, parent)
[docs] def set(self, symbol: str) -> None:
"""SCPI: [SENSe]:NR5G:DEMod:SBTRansient \n
Snippet: driver.applications.k14Xnr5G.sense.nr5G.demod.sbTransient.set(symbol = 'abc') \n
Selects the symbol right before the transient period.
INTRO_CMD_HELP: Prerequisites for this command \n
- Select a transient period != 10 us ([SENSe:]NR5G:DEMod:TPERiod) . \n
:param symbol: String containing the symbol numbers as a comma separated list.
"""
param = Conversions.value_to_quoted_str(symbol)
self._core.io.write(f'SENSe:NR5G:DEMod:SBTRansient {param}')
[docs] def get(self) -> str:
"""SCPI: [SENSe]:NR5G:DEMod:SBTRansient \n
Snippet: value: str = driver.applications.k14Xnr5G.sense.nr5G.demod.sbTransient.get() \n
Selects the symbol right before the transient period.
INTRO_CMD_HELP: Prerequisites for this command \n
- Select a transient period != 10 us ([SENSe:]NR5G:DEMod:TPERiod) . \n
:return: symbol: String containing the symbol numbers as a comma separated list."""
response = self._core.io.query_str(f'SENSe:NR5G:DEMod:SBTRansient?')
return trim_str_response(response)