Source code for RsSmw.Implementations.Source.Bb.Tdscdma

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TdscdmaCls:
	"""
	| Commands in total: 360
	| Subgroups: 12
	| Direct child commands: 6
	"""

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

	@property
	def clipping(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_clipping'):
			from .Clipping import ClippingCls
			self._clipping = ClippingCls(self._core, self._cmd_group)
		return self._clipping

	@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 copy(self):
		"""
		| Commands in total: 3
		| Subgroups: 1
		| Direct child commands: 2
		"""
		if not hasattr(self, '_copy'):
			from .Copy import CopyCls
			self._copy = CopyCls(self._core, self._cmd_group)
		return self._copy

	@property
	def crate(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_crate'):
			from .Crate import CrateCls
			self._crate = CrateCls(self._core, self._cmd_group)
		return self._crate

	@property
	def down(self):
		"""
		| Commands in total: 147
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_down'):
			from .Down import DownCls
			self._down = DownCls(self._core, self._cmd_group)
		return self._down

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

	@property
	def power(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_power'):
			from .Power import PowerCls
			self._power = PowerCls(self._core, self._cmd_group)
		return self._power

	@property
	def pramp(self):
		"""
		| Commands in total: 5
		| Subgroups: 0
		| Direct child commands: 5
		"""
		if not hasattr(self, '_pramp'):
			from .Pramp import PrampCls
			self._pramp = PrampCls(self._core, self._cmd_group)
		return self._pramp

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

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

	@property
	def up(self):
		"""
		| Commands in total: 150
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_up'):
			from .Up import UpCls
			self._up = UpCls(self._core, self._cmd_group)
		return self._up

	@property
	def waveform(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_waveform'):
			from .Waveform import WaveformCls
			self._waveform = WaveformCls(self._core, self._cmd_group)
		return self._waveform

	# noinspection PyTypeChecker






[docs] def preset(self) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:PRESet`` \n Snippet: ``driver.source.bb.tdscdma.preset()`` \n Sets the parameters of the digital standard to their default values (``*RST`` values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:TDSCdma:STATe. """ self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:PRESet`` \n Snippet: ``driver.source.bb.tdscdma.preset_with_opc()`` \n Sets the parameters of the digital standard to their default values (``*RST`` values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:TDSCdma:STATe. 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:TDSCdma:PRESet', opc_timeout_ms)
[docs] def reset(self) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:RESet`` \n Snippet: ``driver.source.bb.tdscdma.reset()`` \n Resets all cells to the predefined settings. The reset applies to the selected link direction. An overview is provided by table in 'Set to Default'. """ self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:RESet')
[docs] def reset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:RESet`` \n Snippet: ``driver.source.bb.tdscdma.reset_with_opc()`` \n Resets all cells to the predefined settings. The reset applies to the selected link direction. An overview is provided by table in 'Set to Default'. Same as reset, 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:TDSCdma:RESet', opc_timeout_ms)
[docs] def get_slength(self) -> int: """ ``[SOURce<HW>]:BB:TDSCdma:SLENgth`` \n Snippet: ``value: int = driver.source.bb.tdscdma.get_slength()`` \n Sets the sequence length of the arbitrary waveform component of the TD-SCDMA signal in the number of frames. This component is calculated in advance and output in the arbitrary waveform generator. It is added to the realtime signal components. :return: slength: integer Range: 1 to 5000 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:SLENgth?') return Conversions.str_to_int(response)
[docs] def set_slength(self, slength: int) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:SLENgth`` \n Snippet: ``driver.source.bb.tdscdma.set_slength(slength = 1)`` \n Sets the sequence length of the arbitrary waveform component of the TD-SCDMA signal in the number of frames. This component is calculated in advance and output in the arbitrary waveform generator. It is added to the realtime signal components. :param slength: integer Range: 1 to 5000 """ param = Conversions.decimal_value_to_str(slength) self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:SLENgth {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:TDSCdma:STATe`` \n Snippet: ``value: bool = driver.source.bb.tdscdma.get_state()`` \n Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:STATe`` \n Snippet: ``driver.source.bb.tdscdma.set_state(state = False)`` \n Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:STATe {param}')
[docs] def get_version(self) -> str: """ ``[SOURce<HW>]:BB:TDSCdma:VERSion`` \n Snippet: ``value: str = driver.source.bb.tdscdma.get_version()`` \n Queries the version of the TD-SCDMA standard underlying the definitions. :return: version: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:VERSion?') return trim_str_response(response)
def clone(self) -> 'TdscdmaCls': """ 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 = TdscdmaCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group