from typing import List
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MemoryAllCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("memoryAll", core, parent)
[docs]
def get(self) -> List[float]:
"""
``TRACe:IQ:DATA:MEMory`` \n
Snippet: ``value: List[float] = driver.applications.k149Uwb.trace.iq.data.memoryAll.get()`` \n
Queries the I/Q data currently stored in the capture buffer of the FSW. 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 ``RsFsw.trace.iq.data.get()`` . (Note, however, that the method ``RsFsw.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 ``RsFsw.applications.k10Xlte.trace.iq.symbolRate.get()`` and method ``RsFsw.sense.sweep.time.set()``
)
: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 ``RsFsw.applications.k18AmplifierEt.trace.iq.data.formatPy.set()`` . The data format of the individual values depends on method ``RsFsw.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