Source code for RsFsw.Implementations.Diagnostic.Service.Calibration.Due.Date

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 DateCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, date: str) -> None: """ ``DIAGnostic:SERVice:CALibration:DUE:DATE`` \n Snippet: ``driver.diagnostic.service.calibration.due.date.set(date = 'abc')`` \n Defines next date and time the instrument needs calibration to be done in ISO 8601 format. The response may be empty in case of no fixed next calibration due. :param date: String containing next calibration due date. An empty string resets the date (= no due date) . """ param = Conversions.value_to_quoted_str(date) self._core.io.write(f'DIAGnostic:SERVice:CALibration:DUE:DATE {param}')
[docs] def get(self) -> str: """ ``DIAGnostic:SERVice:CALibration:DUE:DATE`` \n Snippet: ``value: str = driver.diagnostic.service.calibration.due.date.get()`` \n Defines next date and time the instrument needs calibration to be done in ISO 8601 format. The response may be empty in case of no fixed next calibration due. """ response = self._core.io.query_str(f'DIAGnostic:SERVice:CALibration:DUE:DATE?') return trim_str_response(response)