from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NofCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("nof", core, parent)
[docs]
def set(self, number: float) -> None:
"""
``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.
: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:
"""
``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.
:return: number: Range: 1 to 1023
"""
response = self._core.io.query_str(f'TRACe:IQ:EGATe:NOF?')
return Conversions.str_to_float(response)