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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DpdchCls:
	"""
	| Commands in total: 4
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def ccoding(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ccoding'):
			from .Ccoding import CcodingCls
			self._ccoding = CcodingCls(self._core, self._cmd_group)
		return self._ccoding

	@property
	def derror(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_derror'):
			from .Derror import DerrorCls
			self._derror = DerrorCls(self._core, self._cmd_group)
		return self._derror

	# noinspection PyTypeChecker
[docs] def get_orate(self) -> enums.SymbRate: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:DPDCh:ORATe`` \n Snippet: ``value: enums.SymbRate = driver.source.bb.w3Gpp.ts25141.wsignal.dpdch.get_orate()`` \n Sets the overall symbol rate. :return: orate: D15K | D30K | D60K | D120k | D240k | D480k | D960k | D1920k | D2880k | D3840k | D4800k | D5760k 15 ksps ... 6 x 960 ksps """ response = self._core.io.query_str('SOURce:BB:W3GPp:TS25141:WSIGnal:DPDCh:ORATe?') return Conversions.str_to_scalar_enum(response, enums.SymbRate)
[docs] def set_orate(self, orate: enums.SymbRate) -> None: """ ``[SOURce]:BB:W3GPp:TS25141:WSIGnal:DPDCh:ORATe`` \n Snippet: ``driver.source.bb.w3Gpp.ts25141.wsignal.dpdch.set_orate(orate = enums.SymbRate.D120k)`` \n Sets the overall symbol rate. :param orate: D15K | D30K | D60K | D120k | D240k | D480k | D960k | D1920k | D2880k | D3840k | D4800k | D5760k 15 ksps ... 6 x 960 ksps """ param = Conversions.enum_scalar_to_str(orate, enums.SymbRate) self._core.io.write(f'SOURce:BB:W3GPp:TS25141:WSIGnal:DPDCh:ORATe {param}')
def clone(self) -> 'DpdchCls': """ 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 = DpdchCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group