from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CaReferenceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("caReference", core, parent)
[docs]
def set(self, reference: enums.FrCharReference) -> None:
"""
``UNIT:CAReference`` \n
Snippet: ``driver.applications.k14Xnr5G.unit.caReference.set(reference = enums.FrCharReference.LRB)`` \n
Selects the reference for result displays whose x-axis shows frequency characteristics of the signal.
:param reference: LRB Frequency values relative to the lowest resource block. RTCF Frequency values relative to the center frequency of the carrier.
"""
param = Conversions.enum_scalar_to_str(reference, enums.FrCharReference)
self._core.io.write(f'UNIT:CAReference {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.FrCharReference:
"""
``UNIT:CAReference`` \n
Snippet: ``value: enums.FrCharReference = driver.applications.k14Xnr5G.unit.caReference.get()`` \n
Selects the reference for result displays whose x-axis shows frequency characteristics of the signal.
:return: reference: LRB Frequency values relative to the lowest resource block. RTCF Frequency values relative to the center frequency of the carrier.
"""
response = self._core.io.query_str(f'UNIT:CAReference?')
return Conversions.str_to_scalar_enum(response, enums.FrCharReference)