Source code for RsFsw.Implementations.Applications.K9x_11ad.Calibration.Pmeter.Zero.Auto

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


# 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, arg_0: enums.EventOnce, powerMeter=repcap.PowerMeter.Default) -> None: """ ``CALibration:PMETer<p>:ZERO:AUTO`` \n Snippet: ``driver.applications.k9X11Ad.calibration.pmeter.zero.auto.set(arg_0 = enums.EventOnce.ONCE, powerMeter = repcap.PowerMeter.Default)`` \n Zeroes the power sensor. Note that you have to disconnect the signals from the power sensor input before you start to zero the power sensor. Otherwise, results are invalid. :param powerMeter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Pmeter') """ param = Conversions.enum_scalar_to_str(arg_0, enums.EventOnce) powerMeter_cmd_val = self._cmd_group.get_repcap_cmd_value(powerMeter, repcap.PowerMeter) self._core.io.write(f'CALibration:PMETer{powerMeter_cmd_val}:ZERO:AUTO {param}')