from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NdevicesCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ndevices", core, parent)
[docs]
def set(self, devices: float) -> None:
"""
``CONFigure[:LTE]:NDEVices`` \n
Snippet: ``driver.applications.k10Xlte.configure.lte.ndevices.set(devices = 1.0)`` \n
Selects the number of FSW used in a time alignment error measurement with carrier aggregation. (Note that for uplink time
alignment error measurements, the number of devices is always '1'.)
:param devices: 1 Performs a broadband measurement over all component carriers on a single FSW. 2 Performs a measurement on two FSW, each one analyzing a single component carrier.
"""
param = Conversions.decimal_value_to_str(devices)
self._core.io.write(f'CONFigure:LTE:NDEVices {param}')
[docs]
def get(self) -> float:
"""
``CONFigure[:LTE]:NDEVices`` \n
Snippet: ``value: float = driver.applications.k10Xlte.configure.lte.ndevices.get()`` \n
Selects the number of FSW used in a time alignment error measurement with carrier aggregation. (Note that for uplink time
alignment error measurements, the number of devices is always '1'.)
:return: devices: 1 Performs a broadband measurement over all component carriers on a single FSW. 2 Performs a measurement on two FSW, each one analyzing a single component carrier.
"""
response = self._core.io.query_str(f'CONFigure:LTE:NDEVices?')
return Conversions.str_to_float(response)