Source code for RsCma.Implementations.Calibration.GprfMeasurement.ExtPwrSensor.Zero

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .....Internal.Types import DataType
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ZeroCls: """Zero commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("zero", core, parent)
[docs] def set(self) -> None: """SCPI: CALibration:GPRF:MEASurement<Instance>:EPSensor:ZERO \n Snippet: driver.calibration.gprfMeasurement.extPwrSensor.zero.set() \n Initiates zeroing of the power sensor. A query returns whether the zeroing was successful. \n Use RsCma.reliability.last_value to read the updated reliability indicator. \n """ self._core.io.write(f'CALibration:GPRF:MEASurement<Instance>:EPSensor:ZERO')
[docs] def set_with_opc(self, opc_timeout_ms: int = -1) -> None: """SCPI: CALibration:GPRF:MEASurement<Instance>:EPSensor:ZERO \n Snippet: driver.calibration.gprfMeasurement.extPwrSensor.zero.set_with_opc() \n Initiates zeroing of the power sensor. A query returns whether the zeroing was successful. \n Use RsCma.reliability.last_value to read the updated reliability indicator. \n Same as set, but waits for the operation to complete before continuing further. Use the RsCma.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'CALibration:GPRF:MEASurement<Instance>:EPSensor:ZERO', opc_timeout_ms)
# noinspection PyTypeChecker
[docs] def get(self) -> enums.Status: """SCPI: CALibration:GPRF:MEASurement<Instance>:EPSensor:ZERO \n Snippet: value: enums.Status = driver.calibration.gprfMeasurement.extPwrSensor.zero.get() \n Initiates zeroing of the power sensor. A query returns whether the zeroing was successful. \n Use RsCma.reliability.last_value to read the updated reliability indicator. \n :return: zeroing_state: PASSed | FAILed""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_str_suppressed(f'CALibration:GPRF:MEASurement<Instance>:EPSensor:ZERO?', suppressed) return Conversions.str_to_scalar_enum(response, enums.Status)