from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ResultCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("result", core, parent)
[docs]
def get(self) -> float:
"""
``[SENSe]:PMETer:MATH:RESult`` \n
Snippet: ``value: float = driver.sense.pmeter.math.result.get()`` \n
Returns the difference between results from multiple power sensors (<Sensor A> - <Sensor B>) .
"""
response = self._core.io.query_str(f'SENSe:PMETer:MATH:RESult?')
return Conversions.str_to_float(response)