from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DegaussCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("degauss", core, parent)
[docs]
def set(self, opc_timeout_ms: int = -1) -> None:
"""
``TRPRobe:SETup:DEGauss`` \n
Snippet: ``driver.trProbe.setup.degauss.set()`` \n
Demagnetizes the core if it has been magnetized by switching the power on and off, or by an excessive input. Always carry
out demagnetizing before measurement. The demagnetizing process takes about one second.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'TRPRobe:SETup:DEGauss', opc_timeout_ms)