from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LockCls:
"""
| Commands in total: 10
| Subgroups: 5
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("lock", core, parent)
@property
def name(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_name'):
from .Name import NameCls
self._name = NameCls(self._core, self._cmd_group)
return self._name
@property
def owner(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_owner'):
from .Owner import OwnerCls
self._owner = OwnerCls(self._core, self._cmd_group)
return self._owner
@property
def release(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_release'):
from .Release import ReleaseCls
self._release = ReleaseCls(self._core, self._cmd_group)
return self._release
@property
def request(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_request'):
from .Request import RequestCls
self._request = RequestCls(self._core, self._cmd_group)
return self._request
@property
def shared(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_shared'):
from .Shared import SharedCls
self._shared = SharedCls(self._core, self._cmd_group)
return self._shared
[docs]
def get_timeout(self) -> int:
"""
``SYSTem:LOCK:TIMeout`` \n
Snippet: ``value: int = driver.system.lock.get_timeout()`` \n
No help available
"""
response = self._core.io.query_str('SYSTem:LOCK:TIMeout?')
return Conversions.str_to_int(response)
[docs]
def set_timeout(self, time_ms: int) -> None:
"""
``SYSTem:LOCK:TIMeout`` \n
Snippet: ``driver.system.lock.set_timeout(time_ms = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(time_ms)
self._core.io.write(f'SYSTem:LOCK:TIMeout {param}')
def clone(self) -> 'LockCls':
"""
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 = LockCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group