from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NtabCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ntab", core, parent)
[docs]
def set(self, value: float) -> None:
"""
``[SENSe]:POWer:SEM:NTAB`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.power.sem.ntab.set(value = 1.0)`` \n
Defines the parameter NTABconnectors that defines the position of the spectrum emission mask for 1-H base stations.
Prerequisites for this command \n
- Select a 1-H base station (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.bstation.set()`` ) .
"""
param = Conversions.decimal_value_to_str(value)
self._core.io.write(f'SENSe:POWer:SEM:NTAB {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:POWer:SEM:NTAB`` \n
Snippet: ``value: float = driver.applications.k14Xnr5G.sense.power.sem.ntab.get()`` \n
Defines the parameter NTABconnectors that defines the position of the spectrum emission mask for 1-H base stations.
Prerequisites for this command \n
- Select a 1-H base station (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.bstation.set()`` ) .
"""
response = self._core.io.query_str(f'SENSe:POWer:SEM:NTAB?')
return Conversions.str_to_float(response)