from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SlotsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("slots", core, parent)
[docs]
def set(self, slots: float) -> None:
"""
``[SENSe]:ADJust:EVM:SLOTs`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.adjust.evm.slots.set(slots = 1.0)`` \n
Selects the number of slots to be used during the auto EVM routine.
Prerequisites for this command \n
- Select manual automatic measurement time mode (method ``RsFsw.applications.k10Xlte.sense.adjust.configure.level.duration.mode.set()`` ) .
- Define an appropriate automatic measurement time (method ``RsFsw.applications.k10Xlte.sense.adjust.configure.level.duration.set()`` ) .
"""
param = Conversions.decimal_value_to_str(slots)
self._core.io.write(f'SENSe:ADJust:EVM:SLOTs {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:ADJust:EVM:SLOTs`` \n
Snippet: ``value: float = driver.applications.k14Xnr5G.sense.adjust.evm.slots.get()`` \n
Selects the number of slots to be used during the auto EVM routine.
Prerequisites for this command \n
- Select manual automatic measurement time mode (method ``RsFsw.applications.k10Xlte.sense.adjust.configure.level.duration.mode.set()`` ) .
- Define an appropriate automatic measurement time (method ``RsFsw.applications.k10Xlte.sense.adjust.configure.level.duration.set()`` ) .
"""
response = self._core.io.query_str(f'SENSe:ADJust:EVM:SLOTs?')
return Conversions.str_to_float(response)