from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CspacingCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cspacing", core, parent)
[docs]
def set(self, frequency: float) -> None:
"""
``CONFigure[:NR5G]:CSPacing`` \n
Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.cspacing.set(frequency = 1.0)`` \n
Defines the carrier spacing for equidistant frequency offsets in a multicarrier setup. This frequency offset applies to
all component carriers in the setup.
Prerequisites for this command \n
- Select equidistant frequency offset (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.omode.set()`` ) .
:param frequency: Unit: Hz
"""
param = Conversions.decimal_value_to_str(frequency)
self._core.io.write(f'CONFigure:NR5G:CSPacing {param}')
[docs]
def get(self) -> float:
"""
``CONFigure[:NR5G]:CSPacing`` \n
Snippet: ``value: float = driver.applications.k14Xnr5G.configure.nr5G.cspacing.get()`` \n
Defines the carrier spacing for equidistant frequency offsets in a multicarrier setup. This frequency offset applies to
all component carriers in the setup.
Prerequisites for this command \n
- Select equidistant frequency offset (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.omode.set()`` ) .
:return: frequency: Unit: Hz
"""
response = self._core.io.query_str(f'CONFigure:NR5G:CSPacing?')
return Conversions.str_to_float(response)