from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FrequencyCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("frequency", core, parent)
[docs]
def get_max(self) -> float:
"""
``[SOURce<HW>]:FREQuency:CONVerter:EXTernal:OVERrange:FREQuency:MAX`` \n
Snippet: ``value: float = driver.source.frequency.converter.external.overrange.frequency.get_max()`` \n
Indicates the minimum and maximum frequency range values of the connected external instrument. The frequency overrange is
based on the calibration data of the specific device.
:return: overrang_freq_max: float Range: OverrangeMin to OverrangeMax
"""
response = self._core.io.query_str('SOURce<HwInstance>:FREQuency:CONVerter:EXTernal:OVERrange:FREQuency:MAX?')
return Conversions.str_to_float(response)
[docs]
def get_min(self) -> float:
"""
``[SOURce<HW>]:FREQuency:CONVerter:EXTernal:OVERrange:FREQuency:MIN`` \n
Snippet: ``value: float = driver.source.frequency.converter.external.overrange.frequency.get_min()`` \n
Indicates the minimum frequency value of the connected external instrument. The frequency overrange is based on the
calibration data of the specific device.
:return: overrang_min_freq: float Range: OverrangeMin to OverrangeMax
"""
response = self._core.io.query_str('SOURce<HwInstance>:FREQuency:CONVerter:EXTernal:OVERrange:FREQuency:MIN?')
return Conversions.str_to_float(response)