9 Programming the Instrument
9.3 SCPI Operation and Results Query
Notes The command supports 5 parameters, but the last 4 (<soffset>, <length>, <roffset>,
<rlimit>) are optional. The optional parameters must be entered in the specified order. For example,
if you want to specify <length>, then you must also specify <soffset>. See details below for a definition
of each of these parameters
This command uses the data in the format specified by "Format Data: Byte Order (Remote Command
Only)" on page 2439, returning either binary or ASCII data
As an example, to query the mean power of a set of GSM bursts:
–
Supply a signal that is a set of GSM bursts
–
Select the IQ Waveform measurement (in IQ Analyzer Mode)
–
Set the sweep time to acquire at least one burst
–
Set the triggers such that acquisition happens at a known position relative to a burst
–
Query the mean burst levels using, :CALC:DATA2:COMP? MEAN,24e-6,526e-6 (These
parameter values correspond to GSM signals, where 526e-6 is the length of the burst in the slot
and you just want 1 burst)
BLOCk or block data
Returns all the data points from the region of the trace data that you specify. For
example, it could be used to return the data points of an input signal over several
timeslots, excluding the portions of the trace data that you do not want. (This is x,y
pairs for trace data and I,Q pairs for complex data.)
CFIT or curve fit
Applies curve fitting routines to the data. <soffset> and <length> are required to
define the data that you want. <roffset> is an optional parameter for the desired
order of the curve equation. The query will return the following values: the x-offset
(in seconds) and the curve coefficients ((order + 1) values).
MIN, MAX, MEAN, DME, RMS, SAMP, SDEV and PPH return one data value for each
specified region (or <length>) of trace data, for as many regions as possible until
you run out of trace data (using <roffset> to specify regions), or they return the
number of regions you specify (using <rlimit>) ignoring any data beyond that.
MINimum
Returns the minimum data point (y value) for the specified region(s) of trace data.
For I/Q trace data, the minimum magnitude of the I/Q pairs is returned.
MAXimum
Returns the maximum data point (y value) for the specified region(s) of trace data.
For I/Q trace data, the maximum magnitude of the I/Q pairs is returned.
Short Range Comms & IoT Mode User's &Programmer's Reference 2440