Source code for RsSmw.Implementations.Source.Iq.Dpd.Output.Error

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


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

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

[docs] def get_max(self) -> float: """ ``[SOURce<HW>]:IQ:DPD:OUTPut:ERRor:MAX`` \n Snippet: ``value: float = driver.source.iq.dpd.output.error.get_max()`` \n Sets the allowed maximum error. :return: maximum_error: float Range: 0.01 to 1 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:OUTPut:ERRor:MAX?') return Conversions.str_to_float(response)
[docs] def set_max(self, maximum_error: float) -> None: """ ``[SOURce<HW>]:IQ:DPD:OUTPut:ERRor:MAX`` \n Snippet: ``driver.source.iq.dpd.output.error.set_max(maximum_error = 1.0)`` \n Sets the allowed maximum error. :param maximum_error: float Range: 0.01 to 1 """ param = Conversions.decimal_value_to_str(maximum_error) self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:OUTPut:ERRor:MAX {param}')
[docs] def get_value(self) -> float: """ ``[SOURce<HW>]:IQ:DPD:OUTPut:ERRor`` \n Snippet: ``value: float = driver.source.iq.dpd.output.error.get_value()`` \n Queries the resulting level error. :return: achieved_error: float """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:OUTPut:ERRor?') return Conversions.str_to_float(response)