Source code for RsSmw.Implementations.Calibration.Delay.Shutdown

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


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

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

[docs] def get_state(self) -> bool: """ ``CALibration:DELay:SHUTdown:[STATe]`` \n Snippet: ``value: bool = driver.calibration.delay.shutdown.get_state()`` \n Enables the instrument to shut down automatically after calibration. :return: shutdown: 1 | ON | 0| OFF """ response = self._core.io.query_str('CALibration:DELay:SHUTdown:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, shutdown: bool) -> None: """ ``CALibration:DELay:SHUTdown:[STATe]`` \n Snippet: ``driver.calibration.delay.shutdown.set_state(shutdown = False)`` \n Enables the instrument to shut down automatically after calibration. :param shutdown: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(shutdown) self._core.io.write(f'CALibration:DELay:SHUTdown:STATe {param}')