Source code for RsFsw.Implementations.System.Klock

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class KlockCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("klock", core, parent)

[docs] def set(self, state: bool) -> None: """ ``SYSTem:KLOCk`` \n Snippet: ``driver.system.klock.set(state = False)`` \n This command locks or unlocks manual operation. :param state: ON LLO (local lockout) . The instrument can only be operated remotely, not locally. OFF Unlocks the manual operation mode. To operate the instrument locally again, you must execute SYST:COMM:INT:REM OFF or select the 'Local' softkey first. """ param = Conversions.bool_to_str(state) self._core.io.write(f'SYSTem:KLOCk {param}')
[docs] def get(self) -> bool: """ ``SYSTem:KLOCk`` \n Snippet: ``value: bool = driver.system.klock.get()`` \n This command locks or unlocks manual operation. :return: state: ON LLO (local lockout) . The instrument can only be operated remotely, not locally. OFF Unlocks the manual operation mode. To operate the instrument locally again, you must execute SYST:COMM:INT:REM OFF or select the 'Local' softkey first. """ response = self._core.io.query_str(f'SYSTem:KLOCk?') return Conversions.str_to_bool(response)