Source code for RsCmwWcdmaSig.Implementations.Configure_.Cell_.ReSelection

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ReSelection: """ReSelection commands group definition. 3 total commands, 0 Sub-groups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("reSelection", core, parent) # noinspection PyTypeChecker
[docs] class SearchStruct(StructBase): """Structure for reading output parameters. Fields: \n - Sintra_Search: float: Range: -32 dB to 20 dB, Unit: dB - Sinter_Search: float: Range: -32 dB to 20 dB, Unit: dB - Ssearch_Rat: float: Range: -32 dB to 20 dB, Unit: dB""" __meta_args_list = [ ArgStruct.scalar_float('Sintra_Search'), ArgStruct.scalar_float('Sinter_Search'), ArgStruct.scalar_float('Ssearch_Rat')] def __init__(self): StructBase.__init__(self, self) self.Sintra_Search: float = None self.Sinter_Search: float = None self.Ssearch_Rat: float = None
# noinspection PyTypeChecker
[docs] class QualityStruct(StructBase): """Structure for reading output parameters. Fields: \n - Qqual_Min: float: Minimum required quality level in the reselection target cell. Range: -24 dB to 0 dB, Unit: dB - Qrxlevmin: float: Minimum RX level at a UE antenna required for reselection to the UMTS cell Range: -115 dBm to -25 dBm, Unit: dBm - Qrx_Lev_Min_Eutra: float: Minimum RX level at a UE antenna required for access to the LTE cell Range: -140 dBm to -44 dBm, Unit: dBm - Qhyst_1_S: float: Hysteresis used for GSM, TDD and for FDD cells in case the quality measure for reselection is set to CPICH RSCP Range: 0 dB to 40 dB, Unit: dB - Qhyst_2_S: float: Hysteresis used for FDD cells if the quality measure for reselection is set to CPICH Ec/No Range: 0 dB to 40 dB, Unit: dB""" __meta_args_list = [ ArgStruct.scalar_float('Qqual_Min'), ArgStruct.scalar_float('Qrxlevmin'), ArgStruct.scalar_float('Qrx_Lev_Min_Eutra'), ArgStruct.scalar_float('Qhyst_1_S'), ArgStruct.scalar_float('Qhyst_2_S')] def __init__(self): StructBase.__init__(self, self) self.Qqual_Min: float = None self.Qrxlevmin: float = None self.Qrx_Lev_Min_Eutra: float = None self.Qhyst_1_S: float = None self.Qhyst_2_S: float = None
[docs] def get_quality(self) -> QualityStruct: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:CELL:RESelection:QUALity \n Snippet: value: QualityStruct = driver.configure.cell.reSelection.get_quality() \n Defines the power levels required for cell reselection. They are transmitted to the UE in the system information. \n :return: structure: for return value, see the help for QualityStruct structure arguments. """ return self._core.io.query_struct('CONFigure:WCDMa:SIGNaling<Instance>:CELL:RESelection:QUALity?', self.__class__.QualityStruct())
[docs] def set_quality(self, value: QualityStruct) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:CELL:RESelection:QUALity \n Snippet: driver.configure.cell.reSelection.set_quality(value = QualityStruct()) \n Defines the power levels required for cell reselection. They are transmitted to the UE in the system information. \n :param value: see the help for QualityStruct structure arguments. """ self._core.io.write_struct('CONFigure:WCDMa:SIGNaling<Instance>:CELL:RESelection:QUALity', value)
[docs] def get_time(self) -> float: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:CELL:RESelection:TIME \n Snippet: value: float = driver.configure.cell.reSelection.get_time() \n Sets the time hysteresis for the cell reselection algorithm. \n :return: tre_selections: Range: 0 s to 31 s """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:CELL:RESelection:TIME?') return Conversions.str_to_float(response)
[docs] def set_time(self, tre_selections: float) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:CELL:RESelection:TIME \n Snippet: driver.configure.cell.reSelection.set_time(tre_selections = 1.0) \n Sets the time hysteresis for the cell reselection algorithm. \n :param tre_selections: Range: 0 s to 31 s """ param = Conversions.decimal_value_to_str(tre_selections) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:CELL:RESelection:TIME {param}')