Source code for RsFsw.Implementations.Calibration.Due.Time

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response


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

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

[docs] def set(self, time: str) -> None: """ ``CALibration:DUE:TIME`` \n Snippet: ``driver.calibration.due.time.set(time = 'abc')`` \n Defines the time at which a self-alignment is scheduled for the days specified by method ``RsFsw.calibration.due.days.set()`` , if method ``RsFsw.calibration.due.schedule.set()`` ON. :param time: string with format 'hh:mm' (24 hours) """ param = Conversions.value_to_quoted_str(time) self._core.io.write(f'CALibration:DUE:TIME {param}')
[docs] def get(self) -> str: """ ``CALibration:DUE:TIME`` \n Snippet: ``value: str = driver.calibration.due.time.get()`` \n Defines the time at which a self-alignment is scheduled for the days specified by method ``RsFsw.calibration.due.days.set()`` , if method ``RsFsw.calibration.due.schedule.set()`` ON. :return: time: string with format 'hh:mm' (24 hours) """ response = self._core.io.query_str(f'CALibration:DUE:TIME?') return trim_str_response(response)