from typing import List
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class MemoryAllCls:
"""MemoryAll commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("memoryAll", core, parent)
[docs] def get(self) -> List[float]:
"""SCPI: TRACe:IQ:DATA:MEMory \n
Snippet: value: List[float] = driver.trace.iq.data.memoryAll.get() \n
This command queries the I/Q data currently stored in the capture buffer of the R&S FSWP. By default, the command returns
all I/Q data in the memory. You can, however, narrow down the amount of data that the command returns using the optional
parameters. If no parameters are specified with the command, the entire trace data is retrieved. In this case, the
command returns the same results as method RsFswp.Trace.Iq.Data.get_. (Note, however, that the method RsFswp.Trace.Iq.
Data.get_ command initiates a new measurement before returning the captured values, rather than returning the existing
data in the memory.) The command returns a comma-separated list of the measured values in floating point format
(comma-separated values = CSV) . The number of values returned is 2 * the number of complex samples. The total number of
complex samples is displayed in the channel bar in manual operation and can be calculated as: <SampleRate> *
<CaptureTime> (See TRACe:IQ:SET, method RsFswp.Applications.IqAnalyzer.Trace.Iq.SymbolRate.set and [SENSe:]SWEep:TIME) \n
:return: iq_data: Measured value pair (I,Q) for each sample that has been recorded. By default, the first half of the list contains the I values, the second half the Q values. The order can be configured using method RsFswp.Applications.IqAnalyzer.Trace.Iq.Data.FormatPy.set. The data format of the individual values depends on method RsFswp.FormatPy.Data.set. Unit: V"""
response = self._core.io.query_bin_or_ascii_float_list(f'FORMAT REAL,32;TRACe:IQ:DATA:MEMory?')
return response