Chapter 2 Command System RIGOL
DL3000 Programming Guide 2-7
*SRE
Syntax *SRE <enable value>
Description Enables bits in the enable register part of the status byte register.
Queries the bit enabled in the enable register part of the status byte register.
Remarks
The parameter <enable value> is a decimal value. It corresponds to the
binary-weighted sum of the bit enabled in the enable register part of the status byte
register. For the definitions for the bits in the status byte register and the decimal
value that corresponds to the value, refer to Table 1-3.
For example, to enable Bit 3 (QUES, questionable data summary bit) and Bit 4 (MAV,
message available) in the enable register part of the standard event status register,
set the parameter <enable value> to 24 (based on the formula: 2
3
+ 2
4
= 24).
After the bits are enabled, the system sends the service request through Bit 6 (RQS,
request service bit) of the status byte register.
When the parameter <enable value> is set to 0, you can run the command to clear
the enable register part of the standard event status register. You can also send the
*PSC
command (*PSC 1) to clear the enable register part of the status byte register
once the instrument is turned on next time.
Return
The query returns a decimal value. It corresponds to the binary-weighted sum of the bit
enabled in the enable register part of the status byte register. For example, 24.
Example *SRE 24 /*Enables Bit 3 (QUES) and Bit 4 (MAV) in the enable register part of the
status byte register. Enables the service request.*/
*SRE? /*Queries the bit enabled in the enable register part of the status byte
register. The query returns 24.*/
Related
*PSC
*STB?
Queries the condition register of the current status byte register.
Remarks The query returns a decimal value. It corresponds to the binary-weighted sum of all the
bits in the register, but the command does not clear the register. For the definitions for the
bits in the status byte register and the decimal value that corresponds to the value, refer to
Table 1-3.
For example, if the current instrument produces questionable results and requests service
for disruption, then Bit3 (QUES) and Bit6 (RQS) in the condition register of the status byte
register will be set to 1. Then, run the command and the query command returns 72. (It is
calculated based on the formula: 2
3
6
Return
The query returns a decimal value. It corresponds to the binary-weighted sum of all the
bits in the condition register of the status byte register. For example, 72.
Example *STB? /*Queries the condition register of the current status byte register. The query