from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SigBarCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sigBar", core, parent)
[docs]
def get_state(self) -> bool:
"""
``DISPlay:SIGBar[:STATe]`` \n
Snippet: ``value: bool = driver.display.sigBar.get_state()`` \n
If enabled, the signal bar is displayed.
:return: state: OFF | ON
"""
response = self._core.io.query_str_with_opc('DISPlay:SIGBar:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``DISPlay:SIGBar[:STATe]`` \n
Snippet: ``driver.display.sigBar.set_state(state = False)`` \n
If enabled, the signal bar is displayed.
:param state: OFF | ON
"""
param = Conversions.bool_to_str(state)
self._core.io.write_with_opc(f'DISPlay:SIGBar:STATe {param}')