from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class SettingCls:
"""Setting commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("setting", core, parent)
[docs]
def get_state(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:DVBS:[SPECial]:SETTing:[STATe] \n
Snippet: value: bool = driver.source.bb.dvbs.special.setting.get_state() \n
Enables or disables all special settings. \n
:return: special_state: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DVBS:SPECial:SETTing:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, special_state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:DVBS:[SPECial]:SETTing:[STATe] \n
Snippet: driver.source.bb.dvbs.special.setting.set_state(special_state = False) \n
Enables or disables all special settings. \n
:param special_state: 1| ON| 0| OFF
"""
param = Conversions.bool_to_str(special_state)
self._core.io.write(f'SOURce<HwInstance>:BB:DVBS:SPECial:SETTing:STATe {param}')