from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ProtectionCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("protection", core, parent)
[docs]
def reset(self, device_name: str=None) -> None:
"""
``INPut:ATTenuation:PROTection:RESet`` \n
Snippet: ``driver.inputPy.attenuation.protection.reset(device_name = 'abc')`` \n
Resets the attenuator and reconnects the RF input with the input mixer for the FSW after an overload condition occurred
and the protection mechanism intervened. The error status bit (bit 3 in the method
``RsFsw.status.questionable.power.event.get()`` status register) and the INPUT OVLD message in the status bar are cleared.
(See method ``RsFsw.status.questionable.power.event.get()`` and 'STATus:QUEStionable:POWer register') . The command works
only if the overload condition has been eliminated first. For details on the protection mechanism, see 'RF Input
Protection'.
"""
param = ''
if device_name:
param = Conversions.value_to_quoted_str(device_name)
self._core.io.write(f'INPut:ATTenuation:PROTection:RESet {param}'.strip())