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

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


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

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

[docs] def get_max(self) -> int: """ ``[SOURce<HW>]:IQ:DPD:OUTPut:ITERations:MAX`` \n Snippet: ``value: int = driver.source.iq.dpd.output.iterations.get_max()`` \n Sets the maximum number of performed iterations to achieving the required error set with method ``RsSmw.source.iq.dpd.output.error.max()`` . :return: max_iterations: integer Range: 1 to 10 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:OUTPut:ITERations:MAX?') return Conversions.str_to_int(response)
[docs] def set_max(self, max_iterations: int) -> None: """ ``[SOURce<HW>]:IQ:DPD:OUTPut:ITERations:MAX`` \n Snippet: ``driver.source.iq.dpd.output.iterations.set_max(max_iterations = 1)`` \n Sets the maximum number of performed iterations to achieving the required error set with method ``RsSmw.source.iq.dpd.output.error.max()`` . :param max_iterations: integer Range: 1 to 10 """ param = Conversions.decimal_value_to_str(max_iterations) self._core.io.write(f'SOURce<HwInstance>:IQ:DPD:OUTPut:ITERations:MAX {param}')