from typing import List
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 AnalyzerCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("analyzer", core, parent)
[docs]
def get_content(self) -> str:
"""
``[SOURce<HW>]:BB:NR5G:ANALyzer:CONTent`` \n
Snippet: ``value: str = driver.source.bb.nr5G.analyzer.get_content()`` \n
Exports the signal configuration to an .allocation file that you can import into the NR 5G application on a signal and
spectrum analyzer.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:ANALyzer:CONTent?')
return trim_str_response(response)
[docs]
def set_content(self, export_xml: str) -> None:
"""
``[SOURce<HW>]:BB:NR5G:ANALyzer:CONTent`` \n
Snippet: ``driver.source.bb.nr5G.analyzer.set_content(export_xml = 'abc')`` \n
Exports the signal configuration to an .allocation file that you can import into the NR 5G application on a signal and
spectrum analyzer.
:param export_xml: string String containg the name and path to the configuration file.
"""
param = Conversions.value_to_quoted_str(export_xml)
self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:ANALyzer:CONTent {param}')
[docs]
def get_create(self) -> List[str]:
"""
``[SOURce<HW>]:BB:NR5G:ANALyzer:CREate`` \n
Snippet: ``value: List[str] = driver.source.bb.nr5G.analyzer.get_create()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:ANALyzer:CREate?')
return Conversions.str_to_str_list(response)