from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelectedCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("selected", core, parent)
[docs]
def set(self, result_range: float) -> None:
"""
``CONFigure:RESult:RANGe[:SELected]`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.result.range.selected.set(result_range = 1.0)`` \n
Sets and querys the selected result range.
:param result_range: numeric value
"""
param = Conversions.decimal_value_to_str(result_range)
self._core.io.write(f'CONFigure:RESult:RANGe:SELected {param}')
[docs]
def get(self) -> float:
"""
``CONFigure:RESult:RANGe[:SELected]`` \n
Snippet: ``value: float = driver.applications.k18AmplifierEt.configure.result.range.selected.get()`` \n
Sets and querys the selected result range.
:return: result_range: numeric value
"""
response = self._core.io.query_str(f'CONFigure:RESult:RANGe:SELected?')
return Conversions.str_to_float(response)