from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ProfilingCls:
"""
| Commands in total: 11
| Subgroups: 5
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("profiling", core, parent)
@property
def hwAccess(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_hwAccess'):
from .HwAccess import HwAccessCls
self._hwAccess = HwAccessCls(self._core, self._cmd_group)
return self._hwAccess
@property
def logging(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_logging'):
from .Logging import LoggingCls
self._logging = LoggingCls(self._core, self._cmd_group)
return self._logging
@property
def module(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_module'):
from .Module import ModuleCls
self._module = ModuleCls(self._core, self._cmd_group)
return self._module
@property
def tick(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_tick'):
from .Tick import TickCls
self._tick = TickCls(self._core, self._cmd_group)
return self._tick
@property
def tpoint(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_tpoint'):
from .Tpoint import TpointCls
self._tpoint = TpointCls(self._core, self._cmd_group)
return self._tpoint
[docs]
def get_state(self) -> bool:
"""
``SYSTem:PROFiling:STATe`` \n
Snippet: ``value: bool = driver.system.profiling.get_state()`` \n
No help available
"""
response = self._core.io.query_str('SYSTem:PROFiling:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``SYSTem:PROFiling:STATe`` \n
Snippet: ``driver.system.profiling.set_state(state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SYSTem:PROFiling:STATe {param}')
def clone(self) -> 'ProfilingCls':
"""
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 = ProfilingCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group