from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BypassCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("bypass", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:FSIMulator:BYPass:STATe`` \n
Snippet: ``value: bool = driver.source.fsimulator.bypass.get_state()`` \n
Enables bypassing of the fading simulator if the simulator is deactivated.
:return: byp_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:BYPass:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, byp_state: bool) -> None:
"""
``[SOURce<HW>]:FSIMulator:BYPass:STATe`` \n
Snippet: ``driver.source.fsimulator.bypass.set_state(byp_state = False)`` \n
Enables bypassing of the fading simulator if the simulator is deactivated.
:param byp_state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(byp_state)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:BYPass:STATe {param}')