Source code for RsCmwWcdmaMeas.Implementations.Configure_.Tpc_.Ulcm

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Ulcm: """Ulcm commands group definition. 2 total commands, 0 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("ulcm", core, parent)
[docs] def get_mlength(self) -> int: """SCPI: CONFigure:WCDMa:MEASurement<instance>:TPC:ULCM:MLENgth \n Snippet: value: int = driver.configure.tpc.ulcm.get_mlength() \n Query the number of slots measured in 'UL Compressed Mode' mode. The value is fixed. It can only be determined while the 'UL Compressed Mode' mode is active. \n :return: meas_length: numeric Range: 60 slots , Unit: slots """ response = self._core.io.query_str('CONFigure:WCDMa:MEASurement<Instance>:TPC:ULCM:MLENgth?') return Conversions.str_to_int(response)
[docs] def set_mlength(self, meas_length: int) -> None: """SCPI: CONFigure:WCDMa:MEASurement<instance>:TPC:ULCM:MLENgth \n Snippet: driver.configure.tpc.ulcm.set_mlength(meas_length = 1) \n Query the number of slots measured in 'UL Compressed Mode' mode. The value is fixed. It can only be determined while the 'UL Compressed Mode' mode is active. \n :param meas_length: numeric Range: 60 slots , Unit: slots """ param = Conversions.decimal_value_to_str(meas_length) self._core.io.write(f'CONFigure:WCDMa:MEASurement<Instance>:TPC:ULCM:MLENgth {param}')
[docs] def get_aexecution(self) -> bool: """SCPI: CONFigure:WCDMa:MEASurement<instance>:TPC:ULCM:AEXecution \n Snippet: value: bool = driver.configure.tpc.ulcm.get_aexecution() \n Enables or disables automatic execution of the TPC setup for combined signal path measurements in 'UL Compressed Mode' mode. \n :return: enable: OFF | ON """ response = self._core.io.query_str('CONFigure:WCDMa:MEASurement<Instance>:TPC:ULCM:AEXecution?') return Conversions.str_to_bool(response)
[docs] def set_aexecution(self, enable: bool) -> None: """SCPI: CONFigure:WCDMa:MEASurement<instance>:TPC:ULCM:AEXecution \n Snippet: driver.configure.tpc.ulcm.set_aexecution(enable = False) \n Enables or disables automatic execution of the TPC setup for combined signal path measurements in 'UL Compressed Mode' mode. \n :param enable: OFF | ON """ param = Conversions.bool_to_str(enable) self._core.io.write(f'CONFigure:WCDMa:MEASurement<Instance>:TPC:ULCM:AEXecution {param}')