Source code for RsFsw.Implementations.Applications.IqAnalyzer.Trace.Iq.Egate.Gap

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class GapCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("gap", core, parent)

[docs] def set(self, gap: int) -> None: """ ``TRACe:IQ:EGATe:GAP`` \n Snippet: ``driver.applications.iqAnalyzer.trace.iq.egate.gap.set(gap = 1)`` \n Defines the interval between several gate periods for gated measurements with the I/Q analyzer. :param gap: numeric value Max = (440 MS * sample rate/200MHz) -1 pretrigger samples defined by TRACe:IQ:SET; sample rate defined by method ``RsFsw.applications.k10Xlte.trace.iq.symbolRate.get()`` ) Range: 1...Max (samples) """ param = Conversions.decimal_value_to_str(gap) self._core.io.write(f'TRACe:IQ:EGATe:GAP {param}')
[docs] def get(self) -> int: """ ``TRACe:IQ:EGATe:GAP`` \n Snippet: ``value: int = driver.applications.iqAnalyzer.trace.iq.egate.gap.get()`` \n Defines the interval between several gate periods for gated measurements with the I/Q analyzer. """ response = self._core.io.query_str(f'TRACe:IQ:EGATe:GAP?') return Conversions.str_to_int(response)