Technical data
242 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
13 Common Commands
*SRE
(Service Request Enable)
Command
*SRE <mask>
The *SRE command sets the Service Request Enable Register bits. By
setting the *SRE, when the event happens, you have enabled the
oscilloscope's interrupt capability. The oscilloscope will then do an SRQ
(service request), which is an interrupt.
<mask> An integer, 0 to 255, representing a mask value for the bits to be enabled
in the Service Request Enable Register as shown in Table 19.
Example This example enables a service request to be generated when a message is
available in the output queue. When a message is available, the MAV bit is
high.
myScope.WriteString "*SRE 16"
Query *SRE?
The *SRE? query returns the current contents of the Service Request
Enable Register.
Returned Format
<mask><NL>
<mask> An integer, 0 to 255, representing a mask value for the bits enabled in the
Service Request Enable Register.
Example This example places the current contents of the Service Request Enable
Register in the numeric variable, varValue, then prints the value of the
variable to the computer's screen.
myScope.WriteString "*SRE?"
varValue = myScope.ReadNumber
Debug.Print FormatNumber(varValue, 0)
The Service Request Enable Register contains a mask value for the bits to
be enabled in the Status Byte Register. A "1" in the Service Request Enable
Register enables the corresponding bit in the Status Byte Register. A "0"
disables the bit.
Table 19 Service Request Enable Register Bits
Bit Weight Enables
7 128 OPER - Operation Status Register
664Not Used
5 32 ESB - Event Status Bit
4 16 MAV - Message Available
38Not Used