Formats and Data Flow 7
Keysight 53220A/53230A User’s Guide 255
DATA:LAST? - returns the last reading taken and includes reading units (Hz,
s). The reading is not deleted from memory and the command can be sent before
the total reading count (TRIGger:COUNt x SAMPle:COUNt) is reached.
DATA:LAST? example
//frequency meas of 500 kHz signal with uHz resolution
CONF:FREQ 500E3, 1E-6, (@1) // configure counter
TRIG:COUN 1 // set trigger count
SAMP:COUN 100 // take 100 readings )
INIT:IMM // initiate counter to start rdgs
wait 20 seconds
DATA:LAST? // retrieve reading (with units) 20s after start
FETC? // fetch all rdgs from memory when complete
A typical response showing a subset of the data is:
+4.999962418998650E+005 HZ
...+4.999962370997962E+005,+4.999962418998650E+005,+4.999962407190446E+
005,+4.999962443559675E+005,...
Querying the reading count
The total number of readings in memory at any given time can be determined with
the command:
DATA:POINts?
The reading count can be read before the total reading count is reached
(TRIGger:COUNt x SAMPle:COUNt).
Setting a reading threshold in memory
The following command allows you to set a reading threshold in the counter’s
volatile memory:
DATA:POINts:EVENt:THReshold <count>
DATA:POINts:EVENt:THReshold?
(query form)