Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.Prach.Limit

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class LimitCls: """Limit commands group definition. 5 total commands, 4 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("limit", core, parent) @property def evMagnitude(self): """evMagnitude commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_evMagnitude'): from .EvMagnitude import EvMagnitudeCls self._evMagnitude = EvMagnitudeCls(self._core, self._cmd_group) return self._evMagnitude @property def merror(self): """merror commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_merror'): from .Merror import MerrorCls self._merror = MerrorCls(self._core, self._cmd_group) return self._merror @property def perror(self): """perror commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_perror'): from .Perror import PerrorCls self._perror = PerrorCls(self._core, self._cmd_group) return self._perror @property def pdynamics(self): """pdynamics commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pdynamics'): from .Pdynamics import PdynamicsCls self._pdynamics = PdynamicsCls(self._core, self._cmd_group) return self._pdynamics
[docs] def get_freq_error(self) -> float or bool: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:LIMit:FERRor \n Snippet: value: float or bool = driver.configure.lteMeas.prach.limit.get_freq_error() \n Defines an upper limit for the carrier frequency error. \n :return: frequency_error: (float or boolean) No help available """ response = self._core.io.query_str('CONFigure:LTE:MEASurement<Instance>:PRACh:LIMit:FERRor?') return Conversions.str_to_float_or_bool(response)
[docs] def set_freq_error(self, frequency_error: float or bool) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:PRACh:LIMit:FERRor \n Snippet: driver.configure.lteMeas.prach.limit.set_freq_error(frequency_error = 1.0) \n Defines an upper limit for the carrier frequency error. \n :param frequency_error: (float or boolean) No help available """ param = Conversions.decimal_or_bool_value_to_str(frequency_error) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:PRACh:LIMit:FERRor {param}')
def clone(self) -> 'LimitCls': """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 = LimitCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group