Source code for RsSmbv.Implementations.Source.Bb.Gnss.Time.Conversion.Qzss.Utc.Aone

from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AoneCls: """Aone commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("aone", core, parent)
[docs] def get_unscaled(self) -> float: """SCPI: [SOURce<HW>]:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE:UNSCaled \n Snippet: value: float = driver.source.bb.gnss.time.conversion.qzss.utc.aone.get_unscaled() \n Sets the first order term of polynomial, A1. \n :return: a_1: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE:UNSCaled?') return Conversions.str_to_float(response)
[docs] def set_unscaled(self, a_1: float) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE:UNSCaled \n Snippet: driver.source.bb.gnss.time.conversion.qzss.utc.aone.set_unscaled(a_1 = 1.0) \n Sets the first order term of polynomial, A1. \n :param a_1: integer Range: -8388608 to 8388607 """ param = Conversions.decimal_value_to_str(a_1) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE:UNSCaled {param}')
[docs] def get_value(self) -> int: """SCPI: [SOURce<HW>]:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE \n Snippet: value: int = driver.source.bb.gnss.time.conversion.qzss.utc.aone.get_value() \n Sets the first order term of polynomial, A1. \n :return: aone: integer Range: -8388608 to 8388607 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE?') return Conversions.str_to_int(response)
[docs] def set_value(self, aone: int) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE \n Snippet: driver.source.bb.gnss.time.conversion.qzss.utc.aone.set_value(aone = 1) \n Sets the first order term of polynomial, A1. \n :param aone: integer Range: -8388608 to 8388607 """ param = Conversions.decimal_value_to_str(aone) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:QZSS:UTC:AONE {param}')