D-10 Signal Processing Sequence and Data Flow Model 2701 User’s Manual
FETCh?
READ?
MEASure?
CALC[1]:DATA[LATest]?
CALC[1]:DATA:FRESh?
As shown in Figure D-4, these commands are used to read data arrays output from the
CALC1 Math block. However, if there is no math function enabled, these commands read
the data arrays in the sample buffer.
NOTE For more information on FETCh?, READ?, and MEASure?, see Section 13,
“SCPI Signal Oriented Measurement Commands.”
FETCh?
With no math function enabled, this command reads the data arrays stored in the sample
buffer. If, for example, there are 20 data arrays stored in the sample buffer, then all 20 data
arrays will be sent to the computer when FETCh? is executed.
With a math function (mX+B, Percent, or 1/X) enabled, the reading in each data array
returned by FETCh? is the result of the math calculation.
Note that FETCh? does not affect data in the sample buffer. Therefore, subsequent
executions of FETCh? acquire the same data.
NOTE When an instrument setting that is relevant to the readings in the sample buffer
is changed, the FETCh? command will cause error -230 (data corrupt or stale)
or a bus time-out to occur. To get FETCh? working again, a new reading must
be triggered.
READ?
The READ? command performs an INITiate and then a FETCh?. The INITiate triggers a
measurement cycle which puts new data in the sample buffer. With no math function
enabled, FETCh? reads the data arrays from the sample buffer. With a math function
enabled, the readings are the result of the math calculation.
The following conditions must be met in order to use READ?:
• Continuous initiation must be disabled. It can be disabled by sending *RST or
INIT:CONT OFF.
• If there are readings stored in the data store, the sample count (SAMP:COUN)
must be set to 1.
• To use a sample count >1, the data store must be cleared (empty). It can be cleared
by sending TRAC:CLE.