Source code for RsSmw.Implementations.Calibration.Delay

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DelayCls:
	"""
	| Commands in total: 3
	| Subgroups: 1
	| Direct child commands: 2
	"""

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

	@property
	def shutdown(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_shutdown'):
			from .Shutdown import ShutdownCls
			self._shutdown = ShutdownCls(self._core, self._cmd_group)
		return self._shutdown

[docs] def get_minutes(self) -> int: """ ``CALibration:DELay:MINutes`` \n Snippet: ``value: int = driver.calibration.delay.get_minutes()`` \n Sets the warm-up time to wait before internal adjustment starts automatically. Automatic execution starts only, if you have enabled the calibration with command ON. :return: minutes: integer Range: 30 to 120 """ response = self._core.io.query_str('CALibration:DELay:MINutes?') return Conversions.str_to_int(response)
[docs] def set_minutes(self, minutes: int) -> None: """ ``CALibration:DELay:MINutes`` \n Snippet: ``driver.calibration.delay.set_minutes(minutes = 1)`` \n Sets the warm-up time to wait before internal adjustment starts automatically. Automatic execution starts only, if you have enabled the calibration with command ON. :param minutes: integer Range: 30 to 120 """ param = Conversions.decimal_value_to_str(minutes) self._core.io.write(f'CALibration:DELay:MINutes {param}')
[docs] def get_measure(self) -> bool: """ ``CALibration:DELay:[MEASure]`` \n Snippet: ``value: bool = driver.calibration.delay.get_measure()`` \n Starts the delayed adjustment process. When the warm-up time has elapsed (see method ``RsSmw.calibration.delay.minutes()`` , it executes the internal adjustments. If you have enabled automatic shutdown, CALibration:DELay:SHUTdown[:STATe] ON, the instrument shuts down when the adjustments are completed. :return: error: 1 | ON | 0| OFF """ response = self._core.io.query_str('CALibration:DELay:MEASure?') return Conversions.str_to_bool(response)
def clone(self) -> 'DelayCls': """ 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 = DelayCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group