from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class BeidouCls:
"""Beidou commands group definition. 5 total commands, 2 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("beidou", core, parent)
@property
def execute(self):
"""execute commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_execute'):
from .Execute import ExecuteCls
self._execute = ExecuteCls(self._core, self._cmd_group)
return self._execute
@property
def file(self):
"""file commands group. 0 Sub-classes, 2 commands."""
if not hasattr(self, '_file'):
from .File import FileCls
self._file = FileCls(self._core, self._cmd_group)
return self._file
[docs] def get_uall(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UALL \n
Snippet: value: bool = driver.source.bb.gnss.sv.importPy.beidou.get_uall() \n
No command help available \n
:return: use_to_all_systems: 1| ON| 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UALL?')
return Conversions.str_to_bool(response)
[docs] def set_uall(self, use_to_all_systems: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UALL \n
Snippet: driver.source.bb.gnss.sv.importPy.beidou.set_uall(use_to_all_systems = False) \n
No command help available \n
:param use_to_all_systems: 1| ON| 0| OFF
"""
param = Conversions.bool_to_str(use_to_all_systems)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UALL {param}')
[docs] def get_ud_source(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UDSource \n
Snippet: value: bool = driver.source.bb.gnss.sv.importPy.beidou.get_ud_source() \n
Enables loading the dedicated files as source for the navigation data. \n
:return: use_diff_src_state: 1| ON| 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UDSource?')
return Conversions.str_to_bool(response)
[docs] def set_ud_source(self, use_diff_src_state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UDSource \n
Snippet: driver.source.bb.gnss.sv.importPy.beidou.set_ud_source(use_diff_src_state = False) \n
Enables loading the dedicated files as source for the navigation data. \n
:param use_diff_src_state: 1| ON| 0| OFF
"""
param = Conversions.bool_to_str(use_diff_src_state)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UDSource {param}')
def clone(self) -> 'BeidouCls':
"""Clones the group by creating new object from it and its whole existing subgroups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = BeidouCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group