from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PrampCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pramp", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:ARBitrary:PRAMp:[STATe]`` \n
Snippet: ``value: bool = driver.source.bb.arbitrary.pramp.get_state()`` \n
If activated, the burst gate marker signal included in the ARB waveform file is used as marker signal for the pulse
modulator.
:return: arb_pram_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:PRAMp:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, arb_pram_state: bool) -> None:
"""
``[SOURce<HW>]:BB:ARBitrary:PRAMp:[STATe]`` \n
Snippet: ``driver.source.bb.arbitrary.pramp.set_state(arb_pram_state = False)`` \n
If activated, the burst gate marker signal included in the ARB waveform file is used as marker signal for the pulse
modulator.
:param arb_pram_state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(arb_pram_state)
self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:PRAMp:STATe {param}')