Source code for RsSmw.Implementations.Source.Bb.W3Gpp.Ts25141.Wsignal

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class WsignalCls:
	"""
	| Commands in total: 21
	| Subgroups: 5
	| Direct child commands: 6
	"""

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

	@property
	def dpcch(self):
		"""
		| Commands in total: 8
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_dpcch'):
			from .Dpcch import DpcchCls
			self._dpcch = DpcchCls(self._core, self._cmd_group)
		return self._dpcch

	@property
	def dpdch(self):
		"""
		| Commands in total: 4
		| Subgroups: 2
		| Direct child commands: 1
		"""
		if not hasattr(self, '_dpdch'):
			from .Dpdch import DpdchCls
			self._dpdch = DpdchCls(self._core, self._cmd_group)
		return self._dpdch

	@property
	def pcpch(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_pcpch'):
			from .Pcpch import PcpchCls
			self._pcpch = PcpchCls(self._core, self._cmd_group)
		return self._pcpch

	@property
	def prach(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_prach'):
			from .Prach import PrachCls
			self._prach = PrachCls(self._core, self._cmd_group)
		return self._prach

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

	# noinspection PyTypeChecker
[docs] def get_btype(self) -> enums.Ts25141WsbLkScen: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:BTYPe`` \n Snippet: ``value: enums.Ts25141WsbLkScen = driver.source.bb.w3Gpp.ts25141.wsignal.get_btype()`` \n Selects the type of blocking scenario and determines the type of interfering signal and its level. :return: btype: WIDE | COLocated | NARRow """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:BTYPe?') return Conversions.str_to_scalar_enum(response, enums.Ts25141WsbLkScen)
[docs] def set_btype(self, btype: enums.Ts25141WsbLkScen) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:BTYPe`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.set_btype(btype = enums.Ts25141WsbLkScen.COLocated)`` \n Selects the type of blocking scenario and determines the type of interfering signal and its level. :param btype: WIDE | COLocated | NARRow """ param = Conversions.enum_scalar_to_str(btype, enums.Ts25141WsbLkScen) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:BTYPe {param}')
[docs] def get_dc_ratio(self) -> float: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:DCRatio`` \n Snippet: ``value: float = driver.source.bb.w3Gpp.ts25141.wsignal.get_dc_ratio()`` \n Sets channel power ratio of DPCCH to DPDCH. :return: dc_ratio: float Range: -80 to 80 """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:DCRatio?') return Conversions.str_to_float(response)
[docs] def set_dc_ratio(self, dc_ratio: float) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:DCRatio`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.set_dc_ratio(dc_ratio = 1.0)`` \n Sets channel power ratio of DPCCH to DPDCH. :param dc_ratio: float Range: -80 to 80 """ param = Conversions.decimal_value_to_str(dc_ratio) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:DCRatio {param}')
[docs] def get_frequency(self) -> float: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:FREQuency`` \n Snippet: ``value: float = driver.source.bb.w3Gpp.ts25141.wsignal.get_frequency()`` \n The command sets the RF frequency of the wanted signal. :return: frequency: float Range: 100E3 to 6E9 """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:FREQuency?') return Conversions.str_to_float(response)
[docs] def set_frequency(self, frequency: float) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:FREQuency`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.set_frequency(frequency = 1.0)`` \n The command sets the RF frequency of the wanted signal. :param frequency: float Range: 100E3 to 6E9 """ param = Conversions.decimal_value_to_str(frequency) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:FREQuency {param}')
# noinspection PyTypeChecker
[docs] def get_oband(self) -> enums.Ts25141WsoPband: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:OBANd`` \n Snippet: ``value: enums.Ts25141WsoPband = driver.source.bb.w3Gpp.ts25141.wsignal.get_oband()`` \n Selects the operating band of the base station for 'Wideband Blocking'. The operating band is required for calculation of power levels and interferer modulation. :return: oband: I | II | III | IV | V| VI """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:OBANd?') return Conversions.str_to_scalar_enum(response, enums.Ts25141WsoPband)
[docs] def set_oband(self, oband: enums.Ts25141WsoPband) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:OBANd`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.set_oband(oband = enums.Ts25141WsoPband.I)`` \n Selects the operating band of the base station for 'Wideband Blocking'. The operating band is required for calculation of power levels and interferer modulation. :param oband: I | II | III | IV | V| VI """ param = Conversions.enum_scalar_to_str(oband, enums.Ts25141WsoPband) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:OBANd {param}')
[docs] def get_power(self) -> float: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:POWer`` \n Snippet: ``value: float = driver.source.bb.w3Gpp.ts25141.wsignal.get_power()`` \n Sets the RF level of the wanted signal. :return: power: float """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:POWer?') return Conversions.str_to_float(response)
[docs] def set_power(self, power: float) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:POWer`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.set_power(power = 1.0)`` \n Sets the RF level of the wanted signal. :param power: float """ param = Conversions.decimal_value_to_str(power) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:POWer {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:STATe`` \n Snippet: ``value: bool = driver.source.bb.w3Gpp.ts25141.wsignal.get_state()`` \n Enables/disables the generation of the wanted signal. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:STATe`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.set_state(state = False)`` \n Enables/disables the generation of the wanted signal. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:STATe {param}')
def clone(self) -> 'WsignalCls': """ 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 = WsignalCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group