Source code for RsFsw.Implementations.Applications.IqAnalyzer.Trace.Iq.TpiSample

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TpiSampleCls: """TpiSample commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tpiSample", core, parent)
[docs] def get(self) -> float: """SCPI: TRACe:IQ:TPISample \n Snippet: value: float = driver.applications.iqAnalyzer.trace.iq.tpiSample.get() \n Queries the time offset from the sample start to the trigger event (trigger point in sample = TPIS) . Since the FSW usually samples with a much higher sample rate than the specific application actually requires, the trigger point determined internally is much more precise than the one determined from the (downsampled) data in the application. Thus, the TPIS indicates the offset from the sample start to the actual trigger event. This value can only be determined in triggered measurements using external or IFPower triggers, otherwise the value is 0. Is not available if the 'Digital Baseband' interface (FSW-B17) is active. \n :return: tpis: numeric value Unit: s""" response = self._core.io.query_str(f'TRACe:IQ:TPISample?') return Conversions.str_to_float(response)