from ..........Internal.Core import Core
from ..........Internal.CommandsGroup import CommandsGroup
from ..........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class IgridCls:
"""Igrid commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("igrid", core, parent)
[docs] def get_period(self) -> int:
"""SCPI: [SOURce<HW>]:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:PERiod \n
Snippet: value: int = driver.source.bb.gnss.system.sbas.gagan.nmessage.nav.igrid.get_period() \n
Sets the periodicity of the SBAS message. \n
:return: interval: integer Range: 0 to 999
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:PERiod?')
return Conversions.str_to_int(response)
[docs] def set_period(self, interval: int) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:PERiod \n
Snippet: driver.source.bb.gnss.system.sbas.gagan.nmessage.nav.igrid.set_period(interval = 1) \n
Sets the periodicity of the SBAS message. \n
:param interval: integer Range: 0 to 999
"""
param = Conversions.decimal_value_to_str(interval)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:PERiod {param}')
[docs] def get_state(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:STATe \n
Snippet: value: bool = driver.source.bb.gnss.system.sbas.gagan.nmessage.nav.igrid.get_state() \n
Enables generation of the particular SBAS correction data. \n
:return: state: 1| ON| 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:STATe?')
return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:STATe \n
Snippet: driver.source.bb.gnss.system.sbas.gagan.nmessage.nav.igrid.set_state(state = False) \n
Enables generation of the particular SBAS correction data. \n
:param state: 1| ON| 0| OFF
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SYSTem:SBAS:GAGAN:NMESsage:NAV:IGRid:STATe {param}')