from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UaChannelCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("uaChannel", core, parent)
[docs]
def set(self, name: str) -> None:
"""
``[SENSe]:POWer:ACHannel:NAME:UACHannel`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.power.achannel.name.uaChannel.set(name = 'abc')`` \n
Defines the name for the upper adjacent channel in asymmetrical MSR channel definitions. To define the name for the lower
adjacent channel use the method ``RsFsw.sense.power.achannel.name.achannel.set()`` command. For details on MSR signals
see 'Measurement on multi-standard radio (MSR) signals'.
:param name: String containing the name of the channel
"""
param = Conversions.value_to_quoted_str(name)
self._core.io.write(f'SENSe:POWer:ACHannel:NAME:UACHannel {param}')
[docs]
def get(self) -> str:
"""
``[SENSe]:POWer:ACHannel:NAME:UACHannel`` \n
Snippet: ``value: str = driver.applications.k14Xnr5G.sense.power.achannel.name.uaChannel.get()`` \n
Defines the name for the upper adjacent channel in asymmetrical MSR channel definitions. To define the name for the lower
adjacent channel use the method ``RsFsw.sense.power.achannel.name.achannel.set()`` command. For details on MSR signals
see 'Measurement on multi-standard radio (MSR) signals'.
:return: name: String containing the name of the channel
"""
response = self._core.io.query_str(f'SENSe:POWer:ACHannel:NAME:UACHannel?')
return trim_str_response(response)