Source code for RsSmw.Implementations.Source.Bb.C2K.Pparameter

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PparameterCls:
	"""
	| Commands in total: 12
	| Subgroups: 5
	| Direct child commands: 2
	"""

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

	@property
	def execute(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_execute'):
			from .Execute import ExecuteCls
			self._execute = ExecuteCls(self._core, self._cmd_group)
		return self._execute

	@property
	def pchannel(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_pchannel'):
			from .Pchannel import PchannelCls
			self._pchannel = PchannelCls(self._core, self._cmd_group)
		return self._pchannel

	@property
	def piChannel(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_piChannel'):
			from .PiChannel import PiChannelCls
			self._piChannel = PiChannelCls(self._core, self._cmd_group)
		return self._piChannel

	@property
	def schannel(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_schannel'):
			from .Schannel import SchannelCls
			self._schannel = SchannelCls(self._core, self._cmd_group)
		return self._schannel

	@property
	def tchannel(self):
		"""
		| Commands in total: 6
		| Subgroups: 4
		| Direct child commands: 2
		"""
		if not hasattr(self, '_tchannel'):
			from .Tchannel import TchannelCls
			self._tchannel = TchannelCls(self._core, self._cmd_group)
		return self._tchannel

	# noinspection PyTypeChecker
[docs] def get_crest(self) -> enums.CresFactMode: """ ``[SOURce<HW>]:BB:C2K:PPARameter:CRESt`` \n Snippet: ``value: enums.CresFactMode = driver.source.bb.c2K.pparameter.get_crest()`` \n This command selects the desired range for the crest factor of the test scenario. The crest factor of the signal is kept in the desired range by automatically setting appropriate Walsh codes and timing offsets. The setting takes effect only after execution of command method ``RsSmw.source.bb.c2K.pparameter.execute.set()`` . The setting of command method ``RsSmw.source.bb.c2K.bstation.cgroup.coffset.wcode.set()`` is adjusted according to the selection. :return: crest: MINimum | AVERage | WORSt MINimum The crest factor is minimized. The Walsh codes are spaced as closely as possible. AVERage An average crest factor is set. The Walsh codes are distributed uniformly over the code domain. WORSt The crest factor is set to an unfavorable value (i.e. maximum) . The Walsh codes are as wildly spaced as possible. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:C2K:PPARameter:CRESt?') return Conversions.str_to_scalar_enum(response, enums.CresFactMode)
[docs] def set_crest(self, crest: enums.CresFactMode) -> None: """ ``[SOURce<HW>]:BB:C2K:PPARameter:CRESt`` \n Snippet: ``driver.source.bb.c2K.pparameter.set_crest(crest = enums.CresFactMode.AVERage)`` \n This command selects the desired range for the crest factor of the test scenario. The crest factor of the signal is kept in the desired range by automatically setting appropriate Walsh codes and timing offsets. The setting takes effect only after execution of command method ``RsSmw.source.bb.c2K.pparameter.execute.set()`` . The setting of command method ``RsSmw.source.bb.c2K.bstation.cgroup.coffset.wcode.set()`` is adjusted according to the selection. :param crest: MINimum | AVERage | WORSt MINimum The crest factor is minimized. The Walsh codes are spaced as closely as possible. AVERage An average crest factor is set. The Walsh codes are distributed uniformly over the code domain. WORSt The crest factor is set to an unfavorable value (i.e. maximum) . The Walsh codes are as wildly spaced as possible. """ param = Conversions.enum_scalar_to_str(crest, enums.CresFactMode) self._core.io.write(f'SOURce<HwInstance>:BB:C2K:PPARameter:CRESt {param}')
# noinspection PyTypeChecker
[docs] def get_rconfiguration(self) -> enums.Cdma2KradioConf: """ ``[SOURce<HW>]:BB:C2K:PPARameter:RCONfiguration`` \n Snippet: ``value: enums.Cdma2KradioConf = driver.source.bb.c2K.pparameter.get_rconfiguration()`` \n Selects the radio configuration for the traffic channel. The setting takes effect only after execution of command method ``RsSmw.source.bb.c2K.pparameter.execute.set()`` . :return: rconfiguration: 1 | 2| 3 | 4| 5 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:C2K:PPARameter:RCONfiguration?') return Conversions.str_to_scalar_enum(response, enums.Cdma2KradioConf)
[docs] def set_rconfiguration(self, rconfiguration: enums.Cdma2KradioConf) -> None: """ ``[SOURce<HW>]:BB:C2K:PPARameter:RCONfiguration`` \n Snippet: ``driver.source.bb.c2K.pparameter.set_rconfiguration(rconfiguration = enums.Cdma2KradioConf._1)`` \n Selects the radio configuration for the traffic channel. The setting takes effect only after execution of command method ``RsSmw.source.bb.c2K.pparameter.execute.set()`` . :param rconfiguration: 1 | 2| 3 | 4| 5 """ param = Conversions.enum_scalar_to_str(rconfiguration, enums.Cdma2KradioConf) self._core.io.write(f'SOURce<HwInstance>:BB:C2K:PPARameter:RCONfiguration {param}')
def clone(self) -> 'PparameterCls': """ 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 = PparameterCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group