Source code for RsSmw.Implementations.Source.Bb.Arbitrary.Cfr.Measure

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:ARBitrary:CFR:MEASure:[STATe]`` \n Snippet: ``value: bool = driver.source.bb.arbitrary.cfr.measure.get_state()`` \n Queries the state of the crest factor reduction calculation. :return: measure_state: 1 | ON | 0| OFF ON: the original and resulting crest factors are already calculated. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:CFR:MEASure:STATe?') return Conversions.str_to_bool(response)