Source code for RsFswp.Implementations.Applications.K50_Spurious.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
[docs]class AutoCls: """Auto commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" 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: """SCPI: CALibration:PMETer<p>:ZERO:AUTO \n Snippet: driver.applications.k50Spurious.calibration.pmeter.zero.auto.set(arg_0 = enums.EventOnce.ONCE, powerMeter = repcap.PowerMeter.Default) \n This command 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. \n :param arg_0: No help available :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}')