Source code for RsFsw.Implementations.Sense.Pmeter.Math.Minuend

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


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

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

[docs] def set(self, minuend: float) -> None: """ ``[SENSe]:PMETer:MATH:MINuend`` \n Snippet: ``driver.sense.pmeter.math.minuend.set(minuend = 1.0)`` \n Defines the minuend for power sensor math (<Sensor A> in <Sensor A> - <SensorB>) . :param minuend: 1 | 2 | 3 | 4 """ param = Conversions.decimal_value_to_str(minuend) self._core.io.write(f'SENSe:PMETer:MATH:MINuend {param}')
[docs] def get(self) -> float: """ ``[SENSe]:PMETer:MATH:MINuend`` \n Snippet: ``value: float = driver.sense.pmeter.math.minuend.get()`` \n Defines the minuend for power sensor math (<Sensor A> in <Sensor A> - <SensorB>) . :return: minuend: 1 | 2 | 3 | 4 """ response = self._core.io.query_str(f'SENSe:PMETer:MATH:MINuend?') return Conversions.str_to_float(response)