from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class NrSubMeasCls:
"""NrSubMeas commands group definition. 196 total commands, 9 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("nrSubMeas", core, parent)
@property
def scenario(self):
"""scenario commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_scenario'):
from .Scenario import ScenarioCls
self._scenario = ScenarioCls(self._core, self._cmd_group)
return self._scenario
@property
def bwConfig(self):
"""bwConfig commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_bwConfig'):
from .BwConfig import BwConfigCls
self._bwConfig = BwConfigCls(self._core, self._cmd_group)
return self._bwConfig
@property
def rfSettings(self):
"""rfSettings commands group. 0 Sub-classes, 6 commands."""
if not hasattr(self, '_rfSettings'):
from .RfSettings import RfSettingsCls
self._rfSettings = RfSettingsCls(self._core, self._cmd_group)
return self._rfSettings
@property
def ulDl(self):
"""ulDl commands group. 1 Sub-classes, 1 commands."""
if not hasattr(self, '_ulDl'):
from .UlDl import UlDlCls
self._ulDl = UlDlCls(self._core, self._cmd_group)
return self._ulDl
@property
def cc(self):
"""cc commands group. 9 Sub-classes, 0 commands."""
if not hasattr(self, '_cc'):
from .Cc import CcCls
self._cc = CcCls(self._core, self._cmd_group)
return self._cc
@property
def ccall(self):
"""ccall commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_ccall'):
from .Ccall import CcallCls
self._ccall = CcallCls(self._core, self._cmd_group)
return self._ccall
@property
def caggregation(self):
"""caggregation commands group. 3 Sub-classes, 2 commands."""
if not hasattr(self, '_caggregation'):
from .Caggregation import CaggregationCls
self._caggregation = CaggregationCls(self._core, self._cmd_group)
return self._caggregation
@property
def listPy(self):
"""listPy commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_listPy'):
from .ListPy import ListPyCls
self._listPy = ListPyCls(self._core, self._cmd_group)
return self._listPy
@property
def multiEval(self):
"""multiEval commands group. 15 Sub-classes, 23 commands."""
if not hasattr(self, '_multiEval'):
from .MultiEval import MultiEvalCls
self._multiEval = MultiEvalCls(self._core, self._cmd_group)
return self._multiEval
# noinspection PyTypeChecker
[docs]
def get_band(self) -> enums.Band:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:BAND \n
Snippet: value: enums.Band = driver.configure.nrSubMeas.get_band() \n
Selects the operating band (OB) . The allowed input range depends on the duplex mode (FDD or TDD) . \n
:return: band: FDD: OB1 | OB2 | OB3 | OB5 | OB7 | OB8 | OB12 | OB13 | OB14 | OB18 | OB20 | OB24 | OB25 | OB26 | OB28 | OB30 | OB65 | OB66 | OB70 | OB71 | OB74 | OB80 | ... | OB86 | OB89 | OB91 | ... | OB95 | OB97 | OB98 | OB99 | OB105 | OB255 | OB256 TDD: OB34 | OB38 | ... | OB41 | OB46 | OB47 | OB48 | OB50 | OB51 | OB53 | OB77 | ... | OB84 | OB86 | OB89 | OB90 | OB95 | OB97 | OB98 | OB99
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:BAND?')
return Conversions.str_to_scalar_enum(response, enums.Band)
[docs]
def set_band(self, band: enums.Band) -> None:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:BAND \n
Snippet: driver.configure.nrSubMeas.set_band(band = enums.Band.OB1) \n
Selects the operating band (OB) . The allowed input range depends on the duplex mode (FDD or TDD) . \n
:param band: FDD: OB1 | OB2 | OB3 | OB5 | OB7 | OB8 | OB12 | OB13 | OB14 | OB18 | OB20 | OB24 | OB25 | OB26 | OB28 | OB30 | OB65 | OB66 | OB70 | OB71 | OB74 | OB80 | ... | OB86 | OB89 | OB91 | ... | OB95 | OB97 | OB98 | OB99 | OB105 | OB255 | OB256 TDD: OB34 | OB38 | ... | OB41 | OB46 | OB47 | OB48 | OB50 | OB51 | OB53 | OB77 | ... | OB84 | OB86 | OB89 | OB90 | OB95 | OB97 | OB98 | OB99
"""
param = Conversions.enum_scalar_to_str(band, enums.Band)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:BAND {param}')
[docs]
def get_ncarrier(self) -> int:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:NCARrier \n
Snippet: value: int = driver.configure.nrSubMeas.get_ncarrier() \n
Configures the number of contiguously aggregated UL carriers in the measured signal. \n
:return: number: numeric Range: 1 to 2
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:NCARrier?')
return Conversions.str_to_int(response)
[docs]
def set_ncarrier(self, number: int) -> None:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:NCARrier \n
Snippet: driver.configure.nrSubMeas.set_ncarrier(number = 1) \n
Configures the number of contiguously aggregated UL carriers in the measured signal. \n
:param number: numeric Range: 1 to 2
"""
param = Conversions.decimal_value_to_str(number)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:NCARrier {param}')
def clone(self) -> 'NrSubMeasCls':
"""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 = NrSubMeasCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group