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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class Sp120KCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("sp120K", core, parent)

[docs] def get_trtsamples(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:OUTPut:TDWind:SP120K:TRTSamples`` \n Snippet: ``value: int = driver.source.bb.nr5G.output.tdWind.sp120K.get_trtsamples()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:SP120K:TRTSamples?') return Conversions.str_to_int(response)
[docs] def get_tr_time(self) -> float: """ ``[SOURce<HW>]:BB:NR5G:OUTPut:TDWind:SP120K:TRTime`` \n Snippet: ``value: float = driver.source.bb.nr5G.output.tdWind.sp120K.get_tr_time()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:SP120K:TRTime?') return Conversions.str_to_float(response)
[docs] def set_tr_time(self, transition_time: float) -> None: """ ``[SOURce<HW>]:BB:NR5G:OUTPut:TDWind:SP120K:TRTime`` \n Snippet: ``driver.source.bb.nr5G.output.tdWind.sp120K.set_tr_time(transition_time = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(transition_time) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:OUTPut:TDWind:SP120K:TRTime {param}')