from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AdvancedCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("advanced", core, parent)
[docs]
def get_audioverload(self) -> bool:
"""
``TRPRobe:SETup:ADVanced:AUDioverload`` \n
Snippet: ``value: bool = driver.trProbe.setup.advanced.get_audioverload()`` \n
Activates the acustic overrange warning in the probe control box.
"""
response = self._core.io.query_str_with_opc('TRPRobe:SETup:ADVanced:AUDioverload?')
return Conversions.str_to_bool(response)
[docs]
def set_audioverload(self, audib_ovrrg: bool) -> None:
"""
``TRPRobe:SETup:ADVanced:AUDioverload`` \n
Snippet: ``driver.trProbe.setup.advanced.set_audioverload(audib_ovrrg = False)`` \n
Activates the acustic overrange warning in the probe control box.
:param audib_ovrrg: OFF | ON
"""
param = Conversions.bool_to_str(audib_ovrrg)
self._core.io.write_with_opc(f'TRPRobe:SETup:ADVanced:AUDioverload {param}')
[docs]
def get_filter_py(self) -> bool:
"""
``TRPRobe:SETup:ADVanced:FILTer`` \n
Snippet: ``value: bool = driver.trProbe.setup.advanced.get_filter_py()`` \n
Enables the lowpass filter in the probe control box.
:return: bw_filter_st: OFF | ON
"""
response = self._core.io.query_str_with_opc('TRPRobe:SETup:ADVanced:FILTer?')
return Conversions.str_to_bool(response)
[docs]
def set_filter_py(self, bw_filter_st: bool) -> None:
"""
``TRPRobe:SETup:ADVanced:FILTer`` \n
Snippet: ``driver.trProbe.setup.advanced.set_filter_py(bw_filter_st = False)`` \n
Enables the lowpass filter in the probe control box.
:param bw_filter_st: OFF | ON
"""
param = Conversions.bool_to_str(bw_filter_st)
self._core.io.write_with_opc(f'TRPRobe:SETup:ADVanced:FILTer {param}')