Source code for RsSmbv.Implementations.Source.Bb.Gnss.Galileo.Osnma.Pkey.Tduration

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TdurationCls: """Tduration commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tduration", core, parent)
[docs] def get_sone(self) -> int: """SCPI: [SOURce<HW>]:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:SONE \n Snippet: value: int = driver.source.bb.gnss.galileo.osnma.pkey.tduration.get_sone() \n No command help available \n :return: duration: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:SONE?') return Conversions.str_to_int(response)
[docs] def set_sone(self, duration: int) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:SONE \n Snippet: driver.source.bb.gnss.galileo.osnma.pkey.tduration.set_sone(duration = 1) \n No command help available \n :param duration: No help available """ param = Conversions.decimal_value_to_str(duration) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:SONE {param}')
[docs] def get_stwo(self) -> int: """SCPI: [SOURce<HW>]:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:STWO \n Snippet: value: int = driver.source.bb.gnss.galileo.osnma.pkey.tduration.get_stwo() \n No command help available \n :return: duration: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:STWO?') return Conversions.str_to_int(response)
[docs] def set_stwo(self, duration: int) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:STWO \n Snippet: driver.source.bb.gnss.galileo.osnma.pkey.tduration.set_stwo(duration = 1) \n No command help available \n :param duration: No help available """ param = Conversions.decimal_value_to_str(duration) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:PKEY:TDURation:STWO {param}')