![background image](http://html2.mh-extra.com/html/keithley/6514/6514_instruction-manual_4064199200.webp)
13-18
Status Structure
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 for-
mat (FORMat:SREGister) is documented in Table 13-2.
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
Model 6514 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.
Model 6514 status model (Figure 13-1) shows how the two queues are structured with the
other registers.
Output queue
The output queue holds data that pertains to the normal operation of the instrument. For
example, when a query command is sent, the response message is placed in the output queue.
When data is placed in the output queue, the message available (MAV) bit in the status byte
register sets. A data message is cleared from the output queue when it is read. The output queue
is considered cleared when it is empty. An empty output queue clears the MAV bit in the status
byte register.
A message is read from the output queue by addressing Model 6514 to talk after the appro-
priate query is sent.
Summary of Contents for 6514
Page 203: ...14 CommonCommands...
Page 207: ...15 SCPISignalOriented MeasurementCommands...
Page 235: ...18 PerformanceVerification...
Page 254: ...19 Calibration...
Page 274: ...20 RoutineMaintenance...
Page 278: ...A Specifications...
Page 282: ...B StatusandErrorMessages...
Page 288: ...C GeneralMeasurement Considerations...
Page 294: ...D DDCEmulationCommands...
Page 299: ...E ExamplePrograms...
Page 306: ...F IEEE 488BusOverview...
Page 320: ...G IEEE 488andSCPI ConformanceInformation...
Page 324: ...H CalibrationOptions...