from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AllowedCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("allowed", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:FREQuency:CONVerter:EXTernal:OVERrange:ALLowed:[STATe]`` \n
Snippet: ``value: bool = driver.source.frequency.converter.external.overrange.allowed.get_state()`` \n
Queries if the connected external instrument provides the extended frequency range. If confirmed, the R&S SMW200A
indicates the correpsonding parameters in the 'RF Frequency' dialog, see 'Frequency Overrange'.
:return: overrang_allowed: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:FREQuency:CONVerter:EXTernal:OVERrange:ALLowed:STATe?')
return Conversions.str_to_bool(response)