Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Fetch.Ddpd.Operation.Status

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


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

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

[docs] def get(self) -> bool: """ ``FETCh:DDPD:OPERation:STATus`` \n Snippet: ``value: bool = driver.applications.k18AmplifierEt.fetch.ddpd.operation.status.get()`` \n This command queries the state of a direct DPD operation. :return: state: ON | OFF | 1 | 0 ON Direct DPD operation was successful. OFF Direct DPD operation was not successful. """ response = self._core.io.query_str(f'FETCh:DDPD:OPERation:STATus?') return Conversions.str_to_bool(response)