from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IgnoreCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ignore", core, parent)
[docs]
def get_rf_changes(self) -> bool:
"""
``[SOURce<HW>]:FSIMulator:IGNore:RFCHanges`` \n
Snippet: ``value: bool = driver.source.fsimulator.ignore.get_rf_changes()`` \n
This is a password-protected function. Unlock the protection level 1 to access it. See method
``RsSmw.system.protect.state.set()`` . Ignores frequency changes lower than 5 % to enable faster frequency hopping.
:return: rf_changes: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:IGNore:RFCHanges?')
return Conversions.str_to_bool(response)
[docs]
def set_rf_changes(self, rf_changes: bool) -> None:
"""
``[SOURce<HW>]:FSIMulator:IGNore:RFCHanges`` \n
Snippet: ``driver.source.fsimulator.ignore.set_rf_changes(rf_changes = False)`` \n
This is a password-protected function. Unlock the protection level 1 to access it. See method
``RsSmw.system.protect.state.set()`` . Ignores frequency changes lower than 5 % to enable faster frequency hopping.
:param rf_changes: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(rf_changes)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:IGNore:RFCHanges {param}')