Source code for RsSmw.Implementations.Source.Bb.Dab

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DabCls:
	"""
	| Commands in total: 54
	| Subgroups: 11
	| Direct child commands: 7
	"""

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

	@property
	def clock(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_clock'):
			from .Clock import ClockCls
			self._clock = ClockCls(self._core, self._cmd_group)
		return self._clock

	@property
	def coder(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_coder'):
			from .Coder import CoderCls
			self._coder = CoderCls(self._core, self._cmd_group)
		return self._coder

	@property
	def data(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_data'):
			from .Data import DataCls
			self._data = DataCls(self._core, self._cmd_group)
		return self._data

	@property
	def eti(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_eti'):
			from .Eti import EtiCls
			self._eti = EtiCls(self._core, self._cmd_group)
		return self._eti

	@property
	def filterPy(self):
		"""
		| Commands in total: 14
		| Subgroups: 3
		| Direct child commands: 2
		"""
		if not hasattr(self, '_filterPy'):
			from .FilterPy import FilterPyCls
			self._filterPy = FilterPyCls(self._core, self._cmd_group)
		return self._filterPy

	@property
	def ileaver(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ileaver'):
			from .Ileaver import IleaverCls
			self._ileaver = IleaverCls(self._core, self._cmd_group)
		return self._ileaver

	@property
	def pnScrambler(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_pnScrambler'):
			from .PnScrambler import PnScramblerCls
			self._pnScrambler = PnScramblerCls(self._core, self._cmd_group)
		return self._pnScrambler

	@property
	def setting(self):
		"""
		| Commands in total: 4
		| Subgroups: 0
		| Direct child commands: 4
		"""
		if not hasattr(self, '_setting'):
			from .Setting import SettingCls
			self._setting = SettingCls(self._core, self._cmd_group)
		return self._setting

	@property
	def symbolRate(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_symbolRate'):
			from .SymbolRate import SymbolRateCls
			self._symbolRate = SymbolRateCls(self._core, self._cmd_group)
		return self._symbolRate

	@property
	def tii(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_tii'):
			from .Tii import TiiCls
			self._tii = TiiCls(self._core, self._cmd_group)
		return self._tii

	@property
	def trigger(self):
		"""
		| Commands in total: 18
		| Subgroups: 5
		| Direct child commands: 4
		"""
		if not hasattr(self, '_trigger'):
			from .Trigger import TriggerCls
			self._trigger = TriggerCls(self._core, self._cmd_group)
		return self._trigger

[docs] def get_eframes(self) -> float: """ ``[SOURce<HW>]:BB:DAB:EFRames`` \n Snippet: ``value: float = driver.source.bb.dab.get_eframes()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:EFRames?') return Conversions.str_to_float(response)
[docs] def set_eframes(self, eframes: float) -> None: """ ``[SOURce<HW>]:BB:DAB:EFRames`` \n Snippet: ``driver.source.bb.dab.set_eframes(eframes = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(eframes) self._core.io.write(f'SOURce<HwInstance>:BB:DAB:EFRames {param}')
[docs] def get_lduration(self) -> float: """ ``[SOURce<HW>]:BB:DAB:LDURation`` \n Snippet: ``value: float = driver.source.bb.dab.get_lduration()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:LDURation?') return Conversions.str_to_float(response)
[docs] def get_mid(self) -> int: """ ``[SOURce<HW>]:BB:DAB:MID`` \n Snippet: ``value: int = driver.source.bb.dab.get_mid()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:MID?') return Conversions.str_to_int(response)
[docs] def set_mid(self, mid: int) -> None: """ ``[SOURce<HW>]:BB:DAB:MID`` \n Snippet: ``driver.source.bb.dab.set_mid(mid = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(mid) self._core.io.write(f'SOURce<HwInstance>:BB:DAB:MID {param}')
[docs] def preset(self) -> None: """ ``[SOURce<HW>]:BB:DAB:PRESet`` \n Snippet: ``driver.source.bb.dab.preset()`` \n No help available """ self._core.io.write(f'SOURce<HwInstance>:BB:DAB:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[SOURce<HW>]:BB:DAB:PRESet`` \n Snippet: ``driver.source.bb.dab.preset_with_opc()`` \n No help available Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:DAB:PRESet', opc_timeout_ms)
[docs] def get_sid(self) -> int: """ ``[SOURce<HW>]:BB:DAB:SID`` \n Snippet: ``value: int = driver.source.bb.dab.get_sid()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:SID?') return Conversions.str_to_int(response)
[docs] def set_sid(self, sid: int) -> None: """ ``[SOURce<HW>]:BB:DAB:SID`` \n Snippet: ``driver.source.bb.dab.set_sid(sid = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(sid) self._core.io.write(f'SOURce<HwInstance>:BB:DAB:SID {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:DAB:STATe`` \n Snippet: ``value: bool = driver.source.bb.dab.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:BB:DAB:STATe`` \n Snippet: ``driver.source.bb.dab.set_state(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:BB:DAB:STATe {param}')
# noinspection PyTypeChecker
[docs] def get_tmode(self) -> enums.DabTxMode: """ ``[SOURce<HW>]:BB:DAB:TMODe`` \n Snippet: ``value: enums.DabTxMode = driver.source.bb.dab.get_tmode()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:TMODe?') return Conversions.str_to_scalar_enum(response, enums.DabTxMode)
[docs] def set_tmode(self, tmode: enums.DabTxMode) -> None: """ ``[SOURce<HW>]:BB:DAB:TMODe`` \n Snippet: ``driver.source.bb.dab.set_tmode(tmode = enums.DabTxMode.I)`` \n No help available """ param = Conversions.enum_scalar_to_str(tmode, enums.DabTxMode) self._core.io.write(f'SOURce<HwInstance>:BB:DAB:TMODe {param}')
def clone(self) -> 'DabCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = DabCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group