from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ResultCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("result", core, parent)
[docs]
def get_ton(self) -> float:
"""
``POWer:ONOFf:RESult:TON`` \n
Snippet: ``value: float = driver.power.onOff.result.get_ton()`` \n
Returns the result time.
:return: turn_on_time: -100E+24 to 100E+24
"""
response = self._core.io.query_str('POWer:ONOFf:RESult:TON?')
return Conversions.str_to_float(response)
[docs]
def get_toff(self) -> float:
"""
``POWer:ONOFf:RESult:TOFF`` \n
Snippet: ``value: float = driver.power.onOff.result.get_toff()`` \n
Returns the result time.
:return: turn_off_time: -100E+24 to 100E+24
"""
response = self._core.io.query_str('POWer:ONOFf:RESult:TOFF?')
return Conversions.str_to_float(response)