Source code for RsSmcv.Implementations.Source.Bb.Dvbc.Special.Setting

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:DVBC:[SPECial]:SETTing:[STATe] \n Snippet: value: bool = driver.source.bb.dvbc.special.setting.get_state() \n Enables/disables special settings. The setting allows you to switch between standard-compliant and user-defined channel coding. \n :return: special_state: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVBC:SPECial:SETTing:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, special_state: bool) -> None: """SCPI: [SOURce<HW>]:BB:DVBC:[SPECial]:SETTing:[STATe] \n Snippet: driver.source.bb.dvbc.special.setting.set_state(special_state = False) \n Enables/disables special settings. The setting allows you to switch between standard-compliant and user-defined channel coding. \n :param special_state: 1| ON| 0| OFF """ param = Conversions.bool_to_str(special_state) self._core.io.write(f'SOURce<HwInstance>:BB:DVBC:SPECial:SETTing:STATe {param}')