Source code for RsFsw.Implementations.Trace.Iq.Egate.Nof

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class NofCls: """Nof commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("nof", core, parent)
[docs] def set(self, number: float) -> None: """SCPI: TRACe:IQ:EGATe:NOF \n Snippet: driver.trace.iq.egate.nof.set(number = 1.0) \n Defines the number of gate periods after the trigger signal for gated measurements with the I/Q analyzer. \n :param number: Range: 1 to 1023 """ param = Conversions.decimal_value_to_str(number) self._core.io.write(f'TRACe:IQ:EGATe:NOF {param}')
[docs] def get(self) -> float: """SCPI: TRACe:IQ:EGATe:NOF \n Snippet: value: float = driver.trace.iq.egate.nof.get() \n Defines the number of gate periods after the trigger signal for gated measurements with the I/Q analyzer. \n :return: number: Range: 1 to 1023""" response = self._core.io.query_str(f'TRACe:IQ:EGATe:NOF?') return Conversions.str_to_float(response)