Source code for RsCmwLteSig.Implementations.Configure.Downlink.Pcc

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PccCls: """Pcc commands group definition. 14 total commands, 10 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("pcc", core, parent) @property def rsepre(self): """rsepre commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_rsepre'): from .Rsepre import RsepreCls self._rsepre = RsepreCls(self._core, self._cmd_group) return self._rsepre @property def pss(self): """pss commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pss'): from .Pss import PssCls self._pss = PssCls(self._core, self._cmd_group) return self._pss @property def sss(self): """sss commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_sss'): from .Sss import SssCls self._sss = SssCls(self._core, self._cmd_group) return self._sss @property def pbch(self): """pbch commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pbch'): from .Pbch import PbchCls self._pbch = PbchCls(self._core, self._cmd_group) return self._pbch @property def pcfich(self): """pcfich commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pcfich'): from .Pcfich import PcfichCls self._pcfich = PcfichCls(self._core, self._cmd_group) return self._pcfich @property def phich(self): """phich commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_phich'): from .Phich import PhichCls self._phich = PhichCls(self._core, self._cmd_group) return self._phich @property def pdcch(self): """pdcch commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pdcch'): from .Pdcch import PdcchCls self._pdcch = PdcchCls(self._core, self._cmd_group) return self._pdcch @property def pdsch(self): """pdsch commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_pdsch'): from .Pdsch import PdschCls self._pdsch = PdschCls(self._core, self._cmd_group) return self._pdsch @property def csirs(self): """csirs commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_csirs'): from .Csirs import CsirsCls self._csirs = CsirsCls(self._core, self._cmd_group) return self._csirs @property def power(self): """power commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_power'): from .Power import PowerCls self._power = PowerCls(self._core, self._cmd_group) return self._power
[docs] def get_ocng(self) -> bool: """SCPI: CONFigure:LTE:SIGNaling<instance>:DL[:PCC]:OCNG \n Snippet: value: bool = driver.configure.downlink.pcc.get_ocng() \n Enables or disables the OFDMA channel noise generator (OCNG) . \n :return: enable: OFF | ON """ response = self._core.io.query_str('CONFigure:LTE:SIGNaling<Instance>:DL:PCC:OCNG?') return Conversions.str_to_bool(response)
[docs] def set_ocng(self, enable: bool) -> None: """SCPI: CONFigure:LTE:SIGNaling<instance>:DL[:PCC]:OCNG \n Snippet: driver.configure.downlink.pcc.set_ocng(enable = False) \n Enables or disables the OFDMA channel noise generator (OCNG) . \n :param enable: OFF | ON """ param = Conversions.bool_to_str(enable) self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:DL:PCC:OCNG {param}')
[docs] def get_awgn(self) -> float or bool: """SCPI: CONFigure:LTE:SIGNaling<instance>:DL[:PCC]:AWGN \n Snippet: value: float or bool = driver.configure.downlink.pcc.get_awgn() \n Specifies the total level of the additive white Gaussian noise (AWGN) interferer. The unit dBm/15 kHz indicates the spectral density integrated across one subcarrier. The range depends on several parameters. It either equals the range of the RS EPRE or is a part of this range. \n :return: awgn: (float or boolean) numeric | ON | OFF Range: depends on many parameters , Unit: dBm/15kHz ON | OFF enables or disables the AWGN interferer. """ response = self._core.io.query_str('CONFigure:LTE:SIGNaling<Instance>:DL:PCC:AWGN?') return Conversions.str_to_float_or_bool(response)
[docs] def set_awgn(self, awgn: float or bool) -> None: """SCPI: CONFigure:LTE:SIGNaling<instance>:DL[:PCC]:AWGN \n Snippet: driver.configure.downlink.pcc.set_awgn(awgn = 1.0) \n Specifies the total level of the additive white Gaussian noise (AWGN) interferer. The unit dBm/15 kHz indicates the spectral density integrated across one subcarrier. The range depends on several parameters. It either equals the range of the RS EPRE or is a part of this range. \n :param awgn: (float or boolean) numeric | ON | OFF Range: depends on many parameters , Unit: dBm/15kHz ON | OFF enables or disables the AWGN interferer. """ param = Conversions.decimal_or_bool_value_to_str(awgn) self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:DL:PCC:AWGN {param}')
def clone(self) -> 'PccCls': """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 = PccCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group