4- 110 Keysight E5260/E5270 Programming Guide, Edition 4
Command Reference
Command Reference
*STB?
The *STB? query command stores the decimal representation of the status byte in
the output data buffer (query buffer).
The *STB? command is functionally identical to the SPOLL command of BASIC,
however this command does not clear the status byte (the SPOLL command clears
the status byte).
Syntax *STB?
Query Response status_byte<CR/LF^EOI>
status_byte value is a decimal number that indicates which bits of the status byte are
ON (“1”).
For example, if status_byte is 40 (8 + 32), then Bit 3 and 5 are set to 1.
Example
Statements
OUTPUT @E5270;"*STB?"
ENTER
@E5270;A
Decimal Value Bit Number Description
1 Bit 0 Data Ready
2 Bit 1 Wait
4 Bit 2 not used
8 Bit 3 Interlock Open
16 Bit 4 Set Ready
32 Bit 5 Error
64 Bit 6 RQS
128 Bit 7 Shut Down