Model 6487 Reference Manual
Status Structure
10-17
Programming example — program and read registers
This command sequence programs and reads the measurement registers. Registers are
read using the binary format (which directly indicates which bits are set). The command to
select format (FORMat:SREGister) is documented in
.
FORM:SREG BIN
' Select binary format to read registers.
STAT:MEAS:ENAB 512
' Enable BFL (buffer full).
STAT:MEAS:COND?
' Read Measurement Condition Register.
STAT:MEAS?
' Read Measurement Event Register.
Queues
The Model 6487 uses two queues which are first-in, first-out (FIFO) registers:
•
Output queue — Used to hold reading and response messages.
•
Error queue — Used to hold error and status messages.
The Model 6487 status model (
) shows how the two queues are structured with
the other registers.
Table 10-6
Common and SCPI commands — event enable registers
Command
Description
*ESE <NDN> or <NRf>
*ESE?
STATus
:OPERation
:ENABle <NDN> or <NRf>
:ENABle?
:MEASurement
:ENABle <NDN> or <NRf>
:ENABle?
:QUEStionable
:ENABle <NDN> or <NRf>
:ENABle?
Program standard event enable register (see “
Parameters
”).
Read standard event enable register.
STATus subsystem:
Operation event enable register:
Program enable register (see “
Parameters
”).
Read enable register.
Measurement event enable register:
Program enable register (see “
Parameters
”).
Read enable register.
Questionable event enable register:
Program enable register (see “
Parameters
”).
Read measurement event enable register.
Parameters:
<NDN>
= #Bxx…x
Binary format (each x = 1 or 0)
= #Hx
Hexadecimal format (x = 0 to FFFF)
= #Qx
Octal format (x = 0 to 177777)
<NRf>
= 0 to 65535
Decimal format
Note: Power-up and STATus:PRESet resets all bits of all enable registers to 0. *CLS has no effect.