Source code for RsSmbv.Implementations.Source.Bb.Gsm.Trigger.External.Clock

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ClockCls: """Clock commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("clock", core, parent)
[docs] def get_delay(self) -> float: """SCPI: [SOURce<HW>]:BB:GSM:TRIGger:EXTernal:CLOCk:DELay \n Snippet: value: float = driver.source.bb.gsm.trigger.external.clock.get_delay() \n No command help available \n :return: delay: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GSM:TRIGger:EXTernal:CLOCk:DELay?') return Conversions.str_to_float(response)
[docs] def set_delay(self, delay: float) -> None: """SCPI: [SOURce<HW>]:BB:GSM:TRIGger:EXTernal:CLOCk:DELay \n Snippet: driver.source.bb.gsm.trigger.external.clock.set_delay(delay = 1.0) \n No command help available \n :param delay: No help available """ param = Conversions.decimal_value_to_str(delay) self._core.io.write(f'SOURce<HwInstance>:BB:GSM:TRIGger:EXTernal:CLOCk:DELay {param}')
[docs] def get_inhibit(self) -> int: """SCPI: [SOURce<HW>]:BB:GSM:TRIGger:EXTernal:CLOCk:INHibit \n Snippet: value: int = driver.source.bb.gsm.trigger.external.clock.get_inhibit() \n No command help available \n :return: inhibit: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GSM:TRIGger:EXTernal:CLOCk:INHibit?') return Conversions.str_to_int(response)
[docs] def set_inhibit(self, inhibit: int) -> None: """SCPI: [SOURce<HW>]:BB:GSM:TRIGger:EXTernal:CLOCk:INHibit \n Snippet: driver.source.bb.gsm.trigger.external.clock.set_inhibit(inhibit = 1) \n No command help available \n :param inhibit: No help available """ param = Conversions.decimal_value_to_str(inhibit) self._core.io.write(f'SOURce<HwInstance>:BB:GSM:TRIGger:EXTernal:CLOCk:INHibit {param}')