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: 21
| Subgroups: 2
| Direct child commands: 4
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("logGen", core, parent)
@property
def downlink(self):
"""
| Commands in total: 7
| Subgroups: 3
| Direct child commands: 4
"""
if not hasattr(self, '_downlink'):
from .Downlink import DownlinkCls
self._downlink = DownlinkCls(self._core, self._cmd_group)
return self._downlink
@property
def uplink(self):
"""
| Commands in total: 10
| Subgroups: 3
| Direct child commands: 7
"""
if not hasattr(self, '_uplink'):
from .Uplink import UplinkCls
self._uplink = UplinkCls(self._core, self._cmd_group)
return self._uplink
[docs]
def get_gs_log_file(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:GSLogfile`` \n
Snippet: ``value: bool = driver.source.bb.v5G.logGen.get_gs_log_file()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:GSLogfile?')
return Conversions.str_to_bool(response)
[docs]
def set_gs_log_file(self, gen_sum_log: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:GSLogfile`` \n
Snippet: ``driver.source.bb.v5G.logGen.set_gs_log_file(gen_sum_log = False)`` \n
No help available
"""
param = Conversions.bool_to_str(gen_sum_log)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:GSLogfile {param}')
[docs]
def get_lfp(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:LFP`` \n
Snippet: ``value: str = driver.source.bb.v5G.logGen.get_lfp()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:LFP?')
return trim_str_response(response)
[docs]
def set_lfp(self, preamble: str) -> None:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:LFP`` \n
Snippet: ``driver.source.bb.v5G.logGen.set_lfp(preamble = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(preamble)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:LFP {param}')
[docs]
def get_output(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:OUTPut`` \n
Snippet: ``value: str = driver.source.bb.v5G.logGen.get_output()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:OUTPut?')
return trim_str_response(response)
[docs]
def set_output(self, output_path: str) -> None:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:OUTPut`` \n
Snippet: ``driver.source.bb.v5G.logGen.set_output(output_path = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(output_path)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:OUTPut {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:STATe`` \n
Snippet: ``value: bool = driver.source.bb.v5G.logGen.get_state()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:LOGGen:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, logging_state: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:LOGGen:STATe`` \n
Snippet: ``driver.source.bb.v5G.logGen.set_state(logging_state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(logging_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:LOGGen:STATe {param}')
def clone(self) -> 'LogGenCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = LogGenCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group