from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UtcCls:
"""
| Commands in total: 8
| Subgroups: 3
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("utc", core, parent)
@property
def aone(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_aone'):
from .Aone import AoneCls
self._aone = AoneCls(self._core, self._cmd_group)
return self._aone
@property
def azero(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_azero'):
from .Azero import AzeroCls
self._azero = AzeroCls(self._core, self._cmd_group)
return self._azero
@property
def tot(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_tot'):
from .Tot import TotCls
self._tot = TotCls(self._core, self._cmd_group)
return self._tot
[docs]
def get_ioffset(self) -> int:
"""
``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:GALileo:UTC:IOFFset`` \n
Snippet: ``value: int = driver.source.bb.gnss.time.conversion.galileo.utc.get_ioffset()`` \n
Queries the integer offset.
:return: integer_offset: integer Range: 0 to 604800
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:GALileo:UTC:IOFFset?')
return Conversions.str_to_int(response)
[docs]
def get_wnot(self) -> int:
"""
``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:GALileo:UTC:WNOT`` \n
Snippet: ``value: int = driver.source.bb.gnss.time.conversion.galileo.utc.get_wnot()`` \n
Sets the UTC data reference week number, WNt.
:return: wnot: integer Range: 0 to 255
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:GALileo:UTC:WNOT?')
return Conversions.str_to_int(response)
[docs]
def set_wnot(self, wnot: int) -> None:
"""
``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:GALileo:UTC:WNOT`` \n
Snippet: ``driver.source.bb.gnss.time.conversion.galileo.utc.set_wnot(wnot = 1)`` \n
Sets the UTC data reference week number, WNt.
:param wnot: integer Range: 0 to 255
"""
param = Conversions.decimal_value_to_str(wnot)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:GALileo:UTC:WNOT {param}')
def clone(self) -> 'UtcCls':
"""
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 = UtcCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group