DATA:LAST?

From Keysight 34970A/34972A

DATA:LAST?

Syntax

DATA:LAST? [<num_rdgs>,](@<channel>)

Description

This query returns the most recent reading or readings taken on the specified channel during the scan.

Parameters

Name Type Range of Values Default Value
<num_rdgs> Numeric An integer from 1 to the number of readings stored in memory for the specified <channel>. 1
<channel> Channel

A single channel, specified as in the following examples. 

(@310) - channel 10 on the module in slot 300.

(@214) - channel14 on the module in slot 200.

This is a required parameter.

Remarks

  • The query returns the readings in order, starting with the earliest reading in the group of recent readings. If you specify more readings than are currently stored in memory, the instrument generates an error message.
  • Readings can be acquired during a scan using the multiplexer or digital modules.
  • Each reading is returned with some combination of measurement units, time stamp, channel number, and alarm status information, depending on the settings set by the FORMat:READing commands. The time stamp is either in relative format (time in seconds since the beginning of the scan) or absolute format (time of day with date, based on the instrument's clock as set by the SYSTem:DATE and SYSTem:TIME commands). The choice of absolute and relative time is determined by the FORMat:READing:TIME:TYPE command.

Return Format

The query returns the specified number of readings for the specified channel (or the internal DMM). If no data is available for the specified channel, the query returns 0 for each field.

For example:

  1 Reading with Units (26.195 °C) 4 Channel Number
  2 Date (November 21, 2004) 5 Alarm Limit Threshold Crossed (0 = No Alarm, 1 = LO, 2 = HI)
  3 Time of Day (3:30:23.000 PM)  

Example

The following query returns the last reading on channel 08 in slot 100.

DATA:LAST? (@108)

Typical Response: +1.84280000E-05 VDC,2004,11,21,14,54,33.104,108,0

See Also

DATA Subsystem Introduction

FORMat Subsystem Introduction

SYSTem:DATE

SYSTem:TIME