Sre -28, Stb? -28 – RIGOL DP832A User Manual

Page 52

Advertising
background image

RIGOL

Chapter 2 Command System

2-28

DP800 Programming Guide

*SRE

Syntax

*SRE <enable value>
*SRE?

Description

Enable the bits in the enable register of the status byte register.
Query the bits currently enabled in the enable register of the status byte register.

Parameter

Name

Type

Range

Default

<enable value>

Discrete

Refer to the "Explanation"

None

Explanation

 <enable value> is a decimal value corresponding to the sum of the binary

weights of the bits to be enabled in the status byte enable register. For the

definitions of the bits in the status byte register and their corresponding

decimal values, please refer to Table 1-6.

For example, to enable the bit3 (QUES) and bit4 (MAV) in the status byte

enable register, set <enable value> to 24 (according to 2

3

+2

4

=24).

 After the bits are enabled, the system sends service request via the bit6

(service request bit) in the status byte register.

 When <enable value> is set to 0, executing this command will clear the enable

register of the status byte register. You can also send the

*PSC

command

(*PSC 1) to clear the enable register of the status byte register at the next

power-on.

Return Format

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

of the bits enabled in the status byte enable register, for example, 24.

Example

*SRE 24 /* Enable the bit3 (QUES) and bit4 (MAV) in the enable register of the

status byte register and enable the service request*/

*SRE? /* Query the bits currently enabled in the enable register of the status

byte register and the query returns 24*/

Related

Command

*PSC

*STB?

Syntax

*STB?

Description

Query the SUMMARY register of the status byte register.

Explanation

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

of all the bits in the register) but do not clear the register. For the definitions of the

bits in the status byte register and their corresponding decimal values, please refer

to Table 1-6.

For example, if questionable state currently occurs in the instrument and the service

request is send, the bit3 (QUES) and bit6 (RQS) in the SUMMARY register of the

status byte register are set and the query returns 72 (according to 2

3

+2

6

=72).

Return Format

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

of all the bits in the SUMMARY register of the status byte register, for example, 72.

Example

*STB? /* Query the SUMMARY register of the status byte register and the query

returns 72*/

Advertising
This manual is related to the following products: