*STB?

From Keysight 34970A/34972A

*STB?

Syntax

*STB?

Description

This command queries the condition register for the Status Byte Register group. This is a read-only register and the bits are not cleared when you read the register.

For more information on the Status System for the instrument, see Status System Introduction.

Remarks

  • The following table lists the bit definitions for the Status Byte Register.
Bit # Bit Name Decimal Value Definition
0 Not Used 1 Always zero.
1 Alarm Summary 2 One or more bits are set in the Alarm Register (bits must be enabled).
2 Error Queue 4 One or more errors have been stored in the Error Queue. Use the SYSTem:ERRor? query to read and delete errors.
3 Questionable Data Summary 8 One or more bits are set in the Questionable Data Register (bits must be enabled, see STATus:QUEStionable:ENABle command).
4 Message Available 16 Data is available in the instrument's output buffer.
5 Standard Event Summary 32 One or more bits are set in the Standard Event Register (bits must be enabled, see *ESE command).
6 Master Summary X One or more bits are set in the Status Byte Register and may generate a Request for Service (RQS). Bits must be enabled using the *SRE command.
7 Standard Operation Summary 128 One or more bits are set in the Standard Operation Register (bits must be enabled, see STATus:OPERation:ENABle command).
  • This query returns the same results as a Serial Poll but the "Master Summary" bit (bit 6) is not cleared if a Serial Poll has occurred.
  • Unlike how a reset clears the condition register, a factory reset (*RST command) does not clear the Status Byte Register.

Return Format

The query reads the condition register and returns a decimal value that corresponds to the binary-weighted sum of all bits set in the register (see table above). For example, if bit 3 (decimal value = 8) and bit 5 (decimal value = 32) are set (and the corresponding bits are enabled), this command will return "+40".

Example

The following query reads the condition register (bits 3 and 5 are set).

*STB?

Typical Response: +40

See Also

IEEE-488 Common Commands Introduction

*SRE