Source code for rsrtx.Implementations.Generator.Alignment.Dc.Result

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


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

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

	# noinspection PyTypeChecker
[docs] def get_state(self) -> enums.AlignmentResult: """ ``GENerator:ALIGnment:DC:RESult[:STATe]`` \n Snippet: ``value: enums.AlignmentResult = driver.generator.alignment.dc.result.get_state()`` \n Queries the result of a DC offset alignment. :return: state: PASSed | FAILed | NOALigndata """ response = self._core.io.query_str('GENerator:ALIGnment:DC:RESult:STATe?') return Conversions.str_to_scalar_enum(response, enums.AlignmentResult)
[docs] def get_date(self) -> str: """ ``GENerator:ALIGnment:DC:RESult:DATE`` \n Snippet: ``value: str = driver.generator.alignment.dc.result.get_date()`` \n Queries the date of the last performed DC offset alignment. """ response = self._core.io.query_str('GENerator:ALIGnment:DC:RESult:DATE?') return trim_str_response(response)
[docs] def get_time(self) -> str: """ ``GENerator:ALIGnment:DC:RESult:TIME`` \n Snippet: ``value: str = driver.generator.alignment.dc.result.get_time()`` \n Queries the time of the last performed DC offset alignment. """ response = self._core.io.query_str('GENerator:ALIGnment:DC:RESult:TIME?') return trim_str_response(response)