Source code for RsSmw.Implementations.Source.Iq.Dpd.Measurement

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:IQ:DPD:MEASurement:STATe`` \n Snippet: ``value: bool = driver.source.iq.dpd.measurement.get_state()`` \n Queries whether the interactions are competed. :return: measure_validity: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:MEASurement:STATe?') return Conversions.str_to_bool(response)