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 LogGenCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("logGen", core, parent)
[docs]
def get_output(self) -> str:
"""
``[SOURce<HW>]:BB:NR5G:LOGGen:OUTPut`` \n
Snippet: ``value: str = driver.source.bb.nr5G.logGen.get_output()`` \n
Sets the directory the files are saved in.
:return: log_gen_output_path: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:LOGGen:OUTPut?')
return trim_str_response(response)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:NR5G:LOGGen:STATe`` \n
Snippet: ``value: bool = driver.source.bb.nr5G.logGen.get_state()`` \n
Activates the logfile generation.
:return: log_gen_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:LOGGen:STATe?')
return Conversions.str_to_bool(response)