Source code for RsFsw.Implementations.Applications.K9x_11ad.Configure.Power.Auto

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


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

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

[docs] def set(self, auto: enums.EventOnce) -> None: """ ``CONFigure:POWer:AUTO`` \n Snippet: ``driver.applications.k9X11Ad.configure.power.auto.set(auto = enums.EventOnce.ONCE)`` \n Is used to switch on or off automatic power level detection. :param auto: ON Automatic power level detection is performed at the start of each measurement sweep, and the reference level is adapted accordingly. OFF The reference level must be defined manually (see method ``RsFsw.applications.k60Transient.display.window.trace.y.scale.refLevel.set()`` ) ONCE Automatic power level detection is performed once at the start of the next measurement sweep, and the reference level is adapted accordingly. The command with this parameter corresponds to method ``RsFsw.sense.adjust.level.set()`` . """ param = Conversions.enum_scalar_to_str(auto, enums.EventOnce) self._core.io.write(f'CONFigure:POWer:AUTO {param}')