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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TchannelCls: """Tchannel commands group definition. 6 total commands, 4 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tchannel", core, parent) @property def data(self): """data commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_data'): from .Data import DataCls self._data = DataCls(self._core, self._cmd_group) return self._data @property def dcChannel(self): """dcChannel commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_dcChannel'): from .DcChannel import DcChannelCls self._dcChannel = DcChannelCls(self._core, self._cmd_group) return self._dcChannel @property def fchannel(self): """fchannel commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_fchannel'): from .Fchannel import FchannelCls self._fchannel = FchannelCls(self._core, self._cmd_group) return self._fchannel @property def schannel(self): """schannel commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_schannel'): from .Schannel import SchannelCls self._schannel = SchannelCls(self._core, self._cmd_group) return self._schannel
[docs] def get_count(self) -> int: """SCPI: [SOURce<HW>]:BB:C2K:PPARameter:TCHannel:COUNt \n Snippet: value: int = driver.source.bb.c2K.pparameter.tchannel.get_count() \n This command sets the number of activated traffic channels. The setting takes effect only after execution of command [:SOURce<hw>]:BB:C2K:PPARameter:EXECute. \n :return: count: integer Range: 0 to 8 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:C2K:PPARameter:TCHannel:COUNt?') return Conversions.str_to_int(response)
[docs] def set_count(self, count: int) -> None: """SCPI: [SOURce<HW>]:BB:C2K:PPARameter:TCHannel:COUNt \n Snippet: driver.source.bb.c2K.pparameter.tchannel.set_count(count = 1) \n This command sets the number of activated traffic channels. The setting takes effect only after execution of command [:SOURce<hw>]:BB:C2K:PPARameter:EXECute. \n :param count: integer Range: 0 to 8 """ param = Conversions.decimal_value_to_str(count) self._core.io.write(f'SOURce<HwInstance>:BB:C2K:PPARameter:TCHannel:COUNt {param}')
# noinspection PyTypeChecker
[docs] def get_flength(self) -> enums.Cdma2KpredFramLen: """SCPI: [SOURce<HW>]:BB:C2K:PPARameter:TCHannel:FLENgth \n Snippet: value: enums.Cdma2KpredFramLen = driver.source.bb.c2K.pparameter.tchannel.get_flength() \n The command activates/deactivates the fundamental channel. The set value is specific for the selected radio configuration. The setting takes effect only after execution of command [:SOURce<hw>]:BB:C2K:PPARameter:EXECute. It is specific for the selected radio configuration. The frame length affects the data rates that are possible within a channel. Changing the frame length can lead to a change of data rate and this in turn can bring about a change of Walsh code. \n :return: flength: 20| 40| 80 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:C2K:PPARameter:TCHannel:FLENgth?') return Conversions.str_to_scalar_enum(response, enums.Cdma2KpredFramLen)
[docs] def set_flength(self, flength: enums.Cdma2KpredFramLen) -> None: """SCPI: [SOURce<HW>]:BB:C2K:PPARameter:TCHannel:FLENgth \n Snippet: driver.source.bb.c2K.pparameter.tchannel.set_flength(flength = enums.Cdma2KpredFramLen._20) \n The command activates/deactivates the fundamental channel. The set value is specific for the selected radio configuration. The setting takes effect only after execution of command [:SOURce<hw>]:BB:C2K:PPARameter:EXECute. It is specific for the selected radio configuration. The frame length affects the data rates that are possible within a channel. Changing the frame length can lead to a change of data rate and this in turn can bring about a change of Walsh code. \n :param flength: 20| 40| 80 """ param = Conversions.enum_scalar_to_str(flength, enums.Cdma2KpredFramLen) self._core.io.write(f'SOURce<HwInstance>:BB:C2K:PPARameter:TCHannel:FLENgth {param}')
def clone(self) -> 'TchannelCls': """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 = TchannelCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group