Chapter 16 SCPI Command Reference
General commands
9102 Handheld Spectrum Analyzer Software version 5.31
261
*ESE
*ESR
Commands affecting the
service register
The service register represents the highest level within the report struc-
ture of the 9102.
The service register contains eight bits.
If any of the bits 0 to 5 or 7 is set, the summary status bit (bit 6) of the
service register will be set as well.
3 8 Device-dependent error – this bit indicates
that a device-specific SCPI error did occur
(SCPI error codes 300 to 399).
2 4 Query error – is set after a SCPI query error
occurred (SCPI error codes 400 to 499).
1 2 Request control – this bit is reserved for future
use.
0 1 Operation complete flag – is set as soon as
the execution of a command has been com-
pleted.
Syntax
*ESE <int1>
Parameters
int1 is an integer.
The valid range is from 0 to 255 (8 bits).
Command
Sets the enable filter (mask) of the event status register.
int1 is the decimal representation of the binary mask.
The mask and the current contents of the event status register will be
ANDed. If the result is not zero, then bit 5 of the Service register will be set.
Query
The query form reads out the enable filter (mask) currently set and returns
its binary representation in a string.
Example
*ESE 128
As soon as power has been switched on, bit 7 (Power on) will be set.
ANDed with the mask 128, a binary 1 will occur and thus bit 5 of the ser-
vice register will be set.
Syntax
*ESR?
Parameters
There are no parameters.
Command
There is only a query form of this command available.
Query
Returns the decimal representation of the current contents of the event sta-
tus register in a string.
Note: This register is self-destructive, i.e. its contents will be cleared after
reading.
Example
After power-on, the *ESR? query will return "128". This means that bit 7 is
set and all the other bits of the event status register are 0.
The command will clear the event status register and a subsequent *ESR?
query will return "0".