STATus:ALARm[:EVENt]?

34980A

STATus:ALARm[:EVENt]?

Syntax

STATus:ALARm[:EVENt]?

Description

This command queries the event register for the Alarm Register group.

Used With:

  • 34921A through 34925A Multiplexer Modules

  • 34950A Digital I/O Module (digital input and counter channels only)

  • 34952A Multifunction Module (digital input and totalizer channels only)
     

For more information on the SCPI Status System for the Agilent 34980A, see the Status System Diagram.

Remarks

  • The following table lists the bit definitions for the Alarm Register.

         Bit Number

Decimal Value

Definition

0

Alarm 1

1

Alarm occurred on Alarm 1.

1

Alarm 2

2

Alarm occurred on Alarm 2.

2

Alarm 3

4

Alarm occurred on Alarm 3.

3

Alarm 4

8

Alarm occurred on Alarm 4.

4

Queue Empty

16

Alarm queue status (0 = empty, 1 = not empty).

5

Queue Overflow

32

Alarm data lost due to alarm queue overflow.

6-15

Reserved

Reserved

Reserved for internal use.

  • Note that if any of bits 0 through 3 are set, bit 4 will also be set to indicate that the Alarm Queue is not empty.

  • Once a bit is set, it remains set until cleared by reading the event register or the *CLS (clear status) command.

Return Format

The command reads the event register and returns a decimal value which corresponds to the binary-weighted sum of all bits set in the register. For example, if bit 1 (decimal value = 2) and bit 4 (decimal value = 16) are set, this command will return "+18".

Example

The following command reads the event register (bits 1, 3, and 4 are set).

STAT:ALAR?

Typical Response:  +25

See Also

STATus:ALARm:CONDition?

STATus:ALARm:ENABle?