beautypg.com

Esr? -24, Idn? -24 – RIGOL DP832A User Manual

Page 48

background image

RIGOL

Chapter 2 Command System

2-24

DP800 Programming Guide

*ESR?

Syntax

*ESR?

Description

Query the event register of the standard event register.

Explanation

 This command returns a decimal value (corresponding to the sum of the binary

weights of all the bits in the register) and clears the status of this register. For

the definitions of the bits in the standard event register and their

corresponding decimal values, refer to Table 1-5.

For example, if query error and execution error currently occur in the

instrument, the bit2 (query error bit) and bit4 (execution error bit) in the event

register of the standard event register are set and this command returns 20

(according to 2

2

+2

4

=20).

 The bits in the event register of the standard event register are latched and

reading the register will clear it. You can also use the

*CLS

command to clear

this register.

Return Format

The query returns a decimal value corresponding to the sum of the binary weights

of all the bits in the register, for example, 20.

Example

*ESR? /*Query the event register of the standard event register and the query

returns 20*/

Related

Command

*CLS

*IDN?

Syntax

*IDN?

Description

Query the ID string of the instrument.

Return Format

The query returns the ID string of the instrument which consists of 4 parts (the

manufacturer name, the instrument model, the instrument serial number and the

digital board version number in sequence) separated by commas ",".

This manual is related to the following products: