20
Chapter 1
Introduction to Programming X-Series Applications
SCPI Measurement Commands
Common Measurement Commands
Current Measurement Query (Remote Command Only)
This command returns the name of the measurement that is currently running.
Test current results against all limits (Remote Command Only)
Queries the status of the current measurement limit testing. It returns a 0 if the measured
results pass when compared with the current limits. It returns a 1 if the measured results
fail any limit tests.
Data Query (Remote Command Only)
Returns the designated measurement data for the currently selected measurement and
subopcode.
n = any valid subopcode for the current measurement. See the measurement command
results table for your current measurement, for information about what data is returned
for the subopcodes.
This command uses the data setting specified by the FORMat:BORDer and
FORMat:DATA commands and can return real or ASCII data. (See the format command
descriptions under Input/Output in the Analyzer Setup section.)
Calculate/Compress Trace Data Query
Returns compressed data for the currently selected measurement and sub-opcode [n].
n = any valid sub-opcode for that measurement. See the MEASure:<measurement>?
command description of your specific measurement for information on the data that can be
returned.
The data is returned in the current Y Axis Unit of the analyzer. The command is used with
Remote Command
:CONFigure?
Example
CONF?
Remote Command
:CALCulate:CLIMits:FAIL?
Example
CALC:CLIM:FAIL? queries the current measurement to see if it
fails the defined limits.
Returns a 0 or 1: 0 it passes, 1 it fails.
Remote Command
:CALCulate:DATA[n]?
Remote Command Notes
The return trace depends on the measurement.
In CALCulate:<meas>:DATA[n], n is any valid subopcode for the
current measurement. It returns the same data as the
FETCh:<measurement>? query where <measurement> is the
current measurement.