STATus:MODule:ENABle

34980A

STATus:MODule:ENABle

Syntax

STATus:MODule:ENABle <enable_value>

STATus:MODule:ENABle?

Description

This command enables bits in the enable register for the Module Event Register group. The selected bits are then reported to the Status Byte.

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

Parameters

Name

Type

Range of Values

Default Value

<enable_value>

Numeric

A decimal value which corresponds to the binary-weighted sum of the bits in the register (see table below).

This is a required parameter

Remarks

  • The following table lists the bit definitions for the Module Event Register.

           Bit Number

Decimal Value

Definition

0

Not Used

Not Used

"0" is returned. 

1

Slot 1 Event

2

Event occurred on module in Slot 1.

2

Slot 2 Event

4

Event occurred on module in Slot 2.

3

Slot 3 Event

8

Event occurred on module in Slot 3.

4

Slot 4 Event

16

Event occurred on module in Slot 4.

5

Slot 5 Event

32

Event occurred on module in Slot 5.

6

Slot 6 Event

64

Event occurred on module in Slot 6.

7

Slot 7 Event

128

Event occurred on module in Slot 7.

8

Slot 8 Event

256

Event occurred on module in Slot 8.

9-13

Not Used

Not Used

"0" is returned.

14

Queue Empty

16384

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

15

Queue Overflow

32768

Event data lost due to event queue overflow.

  • Use the <enable_value> parameter to specify which bits will be reported to the Status Byte. The decimal value specified corresponds to the binary-weighted sum of the bits you wish to enable in the register. For example, to enable bit 0 (decimal value = 1), bit 1 (decimal value = 2), and bit 8 (decimal value = 256), the corresponding decimal value would be 259 (1 + 2 + 256).

  • Most of the plug-in modules have defined events that are logged in the Module Event queue. For module-specific event definitions, see Plug-In Module Event Register Information.

  • The *CLS (clear status) command will not clear the enable register but it does clear all bits in the event register.

  • The STATus:PRESet command will clear all bits in the enable register.

Return Format

The query command reads the enable 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 3 (decimal value = 8) are enabled, the query command will return "+10".

Examples

The following command enables bit 8 (decimal value = 256) in the enable register.

STAT:MOD:ENAB 256

The following query returns which bits are enabled in the register.  

STAT:MOD:ENAB?

Typical Response:  +256

See Also

STATus:MODule[:EVENt]?

STATus:MODule:SLOT[n]:ENABle

STATus:PRESet