7
Formats and Data Flow
R? example
// frequency meas of 500 kHz signal with uHz resolution
CONF:FREQ 500E3, 1E-6, (@1)
INIT:IMM
wait 2500 seconds
R? 2500
wait 2500 seconds
R?
DATA:REMove? <count>[,WAIT]
INITiate:IMMediate.Transfers count number of readings to the output buffer
and erases the readings in reading memory. Unlike FETCh?, DATA:REMove? can
be used to transfer readings before the total reading count is reached
(TRIGger:COUNt x SAMPle:COUNt) to prevent a memory overflow. However,
count is a required parameter and, therefore, count number of readings must be
available before they can be removed. Including WAIT will cause the command to
wait until count readings are available. This will prevent error -222, "Data Out
of Range" from occurring if the specified count is not available.
If the data format is REAL (FORMat subsystem), the readings are transferred in
Definite-Length Block format
(first in - first out).
DATA:REMove? example
// frequency meas of 500 kHz signal with uHz resolution
CONF:FREQ 500E3, 1E-6, (@1)
INIT:IMM
DATA:REM? 2500,WAIT
DATA:REM? 2500,WAIT
254
TRIG:COUN 2
SAMP:COUN 2500
// read and remove first 2500 readings
// read and remove all remaining readings
TRIG:COUN 2
// set trigger count
SAMP:COUN 2500
// set readings/trigger
// configure counter
// set trigger count
// set readings/trigger
// initiate counter to start readings
- is used following
(Table
7-1). The 'oldest' reading is transferred first
// configure counter
// initiate counter to start readings
// wait for-read first 2500 readings
// wait for-read last 2500 readings
Keysight 53220A/53230A User's Guide