from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ListPyCls:
"""
| Commands in total: 18
| Subgroups: 3
| Direct child commands: 5
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("listPy", core, parent)
@property
def lrange(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_lrange'):
from .Lrange import LrangeCls
self._lrange = LrangeCls(self._core, self._cmd_group)
return self._lrange
@property
def segment(self):
"""
| Commands in total: 11
| Subgroups: 11
| Direct child commands: 0
"""
if not hasattr(self, '_segment'):
from .Segment import SegmentCls
self._segment = SegmentCls(self._core, self._cmd_group)
return self._segment
@property
def singleCmw(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_singleCmw'):
from .SingleCmw import SingleCmwCls
self._singleCmw = SingleCmwCls(self._core, self._cmd_group)
return self._singleCmw
[docs]
def get_os_index(self) -> int | bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:OSINdex`` \n
Snippet: ``value: int | bool = driver.configure.nrSubMeas.multiEval.listPy.get_os_index()`` \n
No help available
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:OSINdex?')
return Conversions.str_to_int_or_bool(response)
[docs]
def set_os_index(self, offline_seg_index: int | bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:OSINdex`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.listPy.set_os_index(offline_seg_index = 1)`` \n
No help available
"""
param = Conversions.decimal_or_bool_value_to_str(offline_seg_index)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:OSINdex {param}')
# noinspection PyTypeChecker
[docs]
def get_bmode(self) -> enums.ListBmode:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:BMODe`` \n
Snippet: ``value: enums.ListBmode = driver.configure.nrSubMeas.multiEval.listPy.get_bmode()`` \n
Enables the burst mode for list mode measurements of bursted FDD signals.
:return: mode: OFF | TDD \n
- OFF: All UL slots of an FDD signal are expected to be active.
- TDD: Some UL slots of an FDD signal can be disabled. The configured TDD UL-DL pattern defines the slots to be measured (UL slots in the pattern) and the slots to be ignored (DL slots in the pattern) .
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:BMODe?')
return Conversions.str_to_scalar_enum(response, enums.ListBmode)
[docs]
def set_bmode(self, mode: enums.ListBmode) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:BMODe`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.listPy.set_bmode(mode = enums.ListBmode.OFF)`` \n
Enables the burst mode for list mode measurements of bursted FDD signals.
:param mode: OFF | TDD \n
- OFF: All UL slots of an FDD signal are expected to be active.
- TDD: Some UL slots of an FDD signal can be disabled. The configured TDD UL-DL pattern defines the slots to be measured (UL slots in the pattern) and the slots to be ignored (DL slots in the pattern) .
"""
param = Conversions.enum_scalar_to_str(mode, enums.ListBmode)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:BMODe {param}')
# noinspection PyTypeChecker
[docs]
def get_cmode(self) -> enums.ParameterSetMode:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:CMODe`` \n
Snippet: ``value: enums.ParameterSetMode = driver.configure.nrSubMeas.multiEval.listPy.get_cmode()`` \n
Sets the connector mode, selecting whether all list mode segments use the same RF connection.
:return: connector_mode: GLOBal | LIST \n
- GLOBal: Use the same RF connection for all segments, see ROUTe:NRSub:MEASi:SPATh.
- LIST: Assign a connection to each segment, see CONFigure:NRSub:MEASi:MEValuation:LIST:SEGMentno:CIDX.
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:CMODe?')
return Conversions.str_to_scalar_enum(response, enums.ParameterSetMode)
[docs]
def set_cmode(self, connector_mode: enums.ParameterSetMode) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:CMODe`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.listPy.set_cmode(connector_mode = enums.ParameterSetMode.GLOBal)`` \n
Sets the connector mode, selecting whether all list mode segments use the same RF connection.
:param connector_mode: GLOBal | LIST \n
- GLOBal: Use the same RF connection for all segments, see ROUTe:NRSub:MEASi:SPATh.
- LIST: Assign a connection to each segment, see CONFigure:NRSub:MEASi:MEValuation:LIST:SEGMentno:CIDX.
"""
param = Conversions.enum_scalar_to_str(connector_mode, enums.ParameterSetMode)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:CMODe {param}')
[docs]
def get_nconnections(self) -> int:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:NCONnections`` \n
Snippet: ``value: int = driver.configure.nrSubMeas.multiEval.listPy.get_nconnections()`` \n
Sets the number of connections to be defined for the list mode, for connector mode LIST. Define the connections via
ROUTe:NRSub:MEAS<i>:SPATh.
:return: no_of_connections: The maximum number of connections is limited by the number of connectors per smart channel.
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:NCONnections?')
return Conversions.str_to_int(response)
[docs]
def set_nconnections(self, no_of_connections: int) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:NCONnections`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.listPy.set_nconnections(no_of_connections = 1)`` \n
Sets the number of connections to be defined for the list mode, for connector mode LIST. Define the connections via
ROUTe:NRSub:MEAS<i>:SPATh.
:param no_of_connections: The maximum number of connections is limited by the number of connectors per smart channel.
"""
param = Conversions.decimal_value_to_str(no_of_connections)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:NCONnections {param}')
[docs]
def get_value(self) -> bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST`` \n
Snippet: ``value: bool = driver.configure.nrSubMeas.multiEval.listPy.get_value()`` \n
Enables or disables the list mode.
:return: enable: OFF: Disable list mode. ON: Enable list mode.
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST?')
return Conversions.str_to_bool(response)
[docs]
def set_value(self, enable: bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST`` \n
Snippet: ``driver.configure.nrSubMeas.multiEval.listPy.set_value(enable = False)`` \n
Enables or disables the list mode.
:param enable: OFF: Disable list mode. ON: Enable list mode.
"""
param = Conversions.bool_to_str(enable)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST {param}')
def clone(self) -> 'ListPyCls':
"""
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 = ListPyCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group