*SRE <
mask
>
Service Request Enable. When a service request event occurs, it sets a
corresponding bit in the Status Byte Register (this happens whether or not the event
has been enabled (unmasked) by
*SRE
). The
*SRE
command allows you to identify
which of these events will assert an HP-IB service request (SRQ). When an event is
enabled by
*SRE
and that event occurs, it sets a bit in the Status Byte Register and
issues an SRQ to the computer (sets the HP-IB SRQ line true). You enable an event
by specifying its decimal weight for
<
mask
>
. To enable more than one event,
specify the sum of the decimal weights. Refer to Figure 4-6 for an illustration
showing the contents of the Status Byte Group. The C-SCPI type for
<
mask
>
is
int16.
Bit #
7
6
5
4
3
2
1
0
Weighted Value
128
64
32
16
8
4
2
1
Event
Operation
Status
Request
Service
Standard
Event
Message
Available
Questionable
Status
not used
not used
not used
*SRE?
Status Register Enable Query. Returns the weighted sum of all enabled
(unmasked) events (those enabled to assert SRQ) in the Status Byte Register.
The C-SCPI type for this returned value is int16.
*STB?
Status Byte Register Query. Returns the weighted sum of all set bits in the Status
Byte Register. Refer to the
*ESE
command on page 277 for a table showing the
contents of the Status Byte Register.
*STB?
does not clear bit 6 (Service Request).
The Message Available bit (bit 4) may be cleared as a result of reading the response
to
*STB?
. The C-SCPI type for this returned value is int16.
*TRG
Trigger Command. Triggers an instrument when the trigger source is set to bus
(
TRIGger:SOURce BUS
command) and the instrument is in the Wait-for-Trigger state.
Common Command Reference
280 HP E1313/E1413 Command Reference
Chapter 5
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com