from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RemoteCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("remote", core, parent)
[docs]
def set(self, go_to_remote: bool) -> None:
"""
``SYSTem:COMMunicate:INTernal:REMote`` \n
Snippet: ``driver.system.communicate.internal.remote.set(go_to_remote = False)`` \n
The instrument switches between manual and remote operation. Note: If the local lockout function (LLO or SYST:KLOC ON)
has been activated in the remote control mode, manual operation is no longer available until GTL (or SYST:KLOC OFF) is
executed. For details, see 'Returning to manual mode ('local') '.
:param go_to_remote: ON | OFF | 0 | 1 OFF | 0 The instrument switches from remote to manual operation. You can operate the instrument locally. ON | 1 The instrument switches from manual to remote operation.
"""
param = Conversions.bool_to_str(go_to_remote)
self._core.io.write(f'SYSTem:COMMunicate:INTernal:REMote {param}')
[docs]
def get(self) -> bool:
"""
``SYSTem:COMMunicate:INTernal:REMote`` \n
Snippet: ``value: bool = driver.system.communicate.internal.remote.get()`` \n
The instrument switches between manual and remote operation. Note: If the local lockout function (LLO or SYST:KLOC ON)
has been activated in the remote control mode, manual operation is no longer available until GTL (or SYST:KLOC OFF) is
executed. For details, see 'Returning to manual mode ('local') '.
:return: go_to_remote: ON | OFF | 0 | 1 OFF | 0 The instrument switches from remote to manual operation. You can operate the instrument locally. ON | 1 The instrument switches from manual to remote operation.
"""
response = self._core.io.query_str(f'SYSTem:COMMunicate:INTernal:REMote?')
return Conversions.str_to_bool(response)