Source code for RsSmw.Implementations.Source.Bb.V5G.Tdw

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:V5G:TDW:STATe`` \n Snippet: ``value: bool = driver.source.bb.v5G.tdw.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:TDW:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:BB:V5G:TDW:STATe`` \n Snippet: ``driver.source.bb.v5G.tdw.set_state(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:TDW:STATe {param}')
[docs] def get_tr_time(self) -> float: """ ``[SOURce<HW>]:BB:V5G:TDW:TRTime`` \n Snippet: ``value: float = driver.source.bb.v5G.tdw.get_tr_time()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:TDW:TRTime?') return Conversions.str_to_float(response)
[docs] def set_tr_time(self, transition_time: float) -> None: """ ``[SOURce<HW>]:BB:V5G:TDW:TRTime`` \n Snippet: ``driver.source.bb.v5G.tdw.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:V5G:TDW:TRTime {param}')