Appendix A
SCPI Command Reference
Common commands
380
4460 GSM System Option and 4468 EDGE System Option
Version 12.20
*SRE
*STB?
Syntax
:*SRE <int1>
Parameters
int1
is an integer. The valid range is from 0 to 255 (8 bits).
Description
Sets the enable filter (mask) for the service register.
int1
is the decimal representation of this binary mask.
The mask and the current content of the service register will be ANDed. If the result is
not zero, a service request (SRQ) will occur on the GPIB.
Query
The query form reads out the mask currently set and returns its binary representation
in a string.
Example
:*SRE 68
As soon as an error occurs, bits 2 and 6 of the service register will be set. ANDed with
the mask (
68
), a binary
1
will be the result and a SRQ will occur on the GPIB.
Syntax
:*STB?
Parameters
There are no parameters.
Description
There is only a query form of this command available.
Query
Returns the decimal representation of the current contents of the service register in a
string.
Note:
This register is self-destructive, i.e. its contents will be cleared after reading.
Example
A
:*STB?
command returns
"68"
.
The return value of
68
(=
64
+
4
) means that an error occurred (
4
).