SYSTem:ALARm?
SYSTem:ALARm?
Syntax
SYSTem:ALARm?
Description
This query reads the alarm data from the alarm queue (one alarm event is read and deleted from the queue each time this command is executed). A record of up to 20 alarms can be stored in the instrument's alarm queue.
Used With:
- 34901A 20 Channel Multiplexer (2/4-wire) Module
- 34902A 16 Channel Multiplexer (2/4-wire) Module
- 34907A Multifunction Module (digital input and totalizer channels only)
- 34908A 40 Channel Single-Ended Multiplexer Module
Remarks
- Each time you start a new scan, the instrument clears all readings (including alarm data) stored in reading memory from the previous measurement. Therefore, the contents of memory are always from the most recent measurement.
- Alarm data is retrieved in first-in-first-out (FIFO) order. The first alarm returned is the first alarm that was stored.
- Up to 20 alarms can be logged in the alarm queue. If more than 20 alarms are generated, they will be lost (only the first 20 alarms are saved).
- To retrieve scanned readings and alarm data from reading memory without clearing the information, use the FETCh? command.
- The alarm queue is cleared by the *CLS (clear status) command, when power is cycled, and by reading all of the entries. A Factory Reset (*RST command) or Instrument Preset (SYSTem:PRESet command) does not clear the alarm queue.
Return Format
The query returns one string each time it is executed. It also reads the alarm data and clears one alarm event from the alarm queue.
The query returns a string in the form shown below (independent of FORMat:READing commands):
| 1 Reading with Units (26.195 |
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) | 6 Alarm Number (1-4) |
Example
The following query reads one message from the alarm queue and removes that message from the queue.
SYST:ALAR?
Typical Response: -1.17616000E-04 VDC,2004,11,21,15,54,50.184,103,1,3
See Also