Source code for RsFsw.Implementations.Applications.K40_PhaseNoise.Fetch.Pnoise.Spurs.Discrete

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DiscreteCls: """Discrete commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("discrete", core, parent)
[docs] def get(self, trace=repcap.Trace.Default) -> float: """SCPI: FETCh:PNOise<t>:SPURs:DISCrete \n Snippet: value: float = driver.applications.k40PhaseNoise.fetch.pnoise.spurs.discrete.get(trace = repcap.Trace.Default) \n Queries the Discrete Jitter result. \n :param trace: optional repeated capability selector. Default value: Tr1 (settable in the interface 'Pnoise') :return: jitter: 1..n""" trace_cmd_val = self._cmd_group.get_repcap_cmd_value(trace, repcap.Trace) response = self._core.io.query_str(f'FETCh:PNOise{trace_cmd_val}:SPURs:DISCrete?') return Conversions.str_to_float(response)