from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RtCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rt", core, parent)
[docs]
def get_changes(self) -> bool:
"""
``[SOURce<HW>]:BB:GNSS:LOGGing:RT:CHANges`` \n
Snippet: ``value: bool = driver.source.bb.gnss.logging.rt.get_changes()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:LOGGing:RT:CHANges?')
return Conversions.str_to_bool(response)
[docs]
def set_changes(self, status: bool) -> None:
"""
``[SOURce<HW>]:BB:GNSS:LOGGing:RT:CHANges`` \n
Snippet: ``driver.source.bb.gnss.logging.rt.set_changes(status = False)`` \n
No help available
"""
param = Conversions.bool_to_str(status)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:LOGGing:RT:CHANges {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:GNSS:LOGGing:RT:STATe`` \n
Snippet: ``value: bool = driver.source.bb.gnss.logging.rt.get_state()`` \n
Starts real-time data logging.
:return: status: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:LOGGing:RT:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, status: bool) -> None:
"""
``[SOURce<HW>]:BB:GNSS:LOGGing:RT:STATe`` \n
Snippet: ``driver.source.bb.gnss.logging.rt.set_state(status = False)`` \n
Starts real-time data logging.
:param status: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(status)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:LOGGing:RT:STATe {param}')