3-24
Document number: S46-901-01 Rev. F / March 2011
Section 3: Operation
S46/S46T/S46L Microwave Switch System Instruction Manual
2.
Cancels all pending commands.
3.
Cancels response to any previously received
*OPC
and
*OPC?
commands.
*SRE <NRf> - Service Request Enable
Program register
*SRE? - Service Request Enable Query
Read register
Parameters
Parameter Description
<NRf> = 0 Clears enable register
4
Set EAV bit (Bit 2)
16
Set MAV bit (Bit 4)
32
Set ESB (Bit 5)
255
Set all bits
Use the
*SRE
command to program the Service Request Enable Register. Send this command
with the decimal equivalent of the binary value that determines the desired state (0 or 1) of each bit
in the register. This register is cleared when instrument power is turned on.
This enable register is used with the Status Byte Register to generate service requests (SRQ).
With a bit in the Service Request Enable Register set, an SRQ occurs when the corresponding bit
in the Status Byte Register is set by an appropriate event. For more information about register
structure, see the information presented earlier in this section.
The Service Request Enable Register is shown in
. Notice that the decimal weight of
each bit is included in the illustration. The sum of the decimal weights of the bits that you wish to
set is the value that is sent with the
*SRE
command. For example, to set the ESB and MAV bits of
the Service Request Enable Register, send the following command:
*SRE 48
Where:
ESB (bit B5) = 32
MAV (bit B4) = 16
<NRf>
= 48
The contents of the Service Request Enable Register can be read using the
*SRE?
query
command.
Figure 3-15
Service Request Enable Register
Event: E
S
B = Event
S
ummary Bit
MAV = Message Available Bit
EAV = Error Available
M
S
B = Measurement
S
ummary Bit
32
(2
5
)
16
(2
4
)
4
(2
2
)
E
S
B MAV
EAV
Bit Position
Event
Decimal Weighting
B7
B5
B4
B3
B2
B1
B0
B6
Value
0/1
0/1
0/1
Value: 1 = Enable
S
ervice Request Event
0 = Disable (Mask)
S
ervice Request Event