10-18
Status Structure
Model 6485 Picoammeter Instruction Manual
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
Model 6485 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 6485 status model (
) 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 6485 to talk after the
appropriate query is sent.
Error queue
The error queue holds error and status messages. When an error or status event occurs, a
message that defines the error/status is placed in the error queue.
When a message is placed in the error queue, the error available (EAV) bit in the status
byte register is set. An error/status message is cleared from the error queue when it is read.
The error queue is considered cleared when it is empty. An empty error queue clears the
EAV bit in the status byte register.
Summary of Contents for 6485
Page 20: ......
Page 24: ......
Page 44: ...1 20 Getting Started Model 6485 Picoammeter Instruction Manual ...
Page 66: ...3 6 Measurements Model 6485 Picoammeter Instruction Manual ...
Page 138: ...9 20 Remote Operation Model 6485 Picoammeter Instruction Manual ...
Page 159: ...11 CommonCommands ...
Page 164: ...11 6 Common Commands Model 6485 Picoammeter Instruction Manual ...
Page 165: ...12 SCPISignalOriented MeasurementCommands ...
Page 190: ...14 12 SCPI Reference Tables Model 6485 Picoammeter Instruction Manual ...
Page 214: ...16 14 Calibration Model 6485 Instruction Manual ...
Page 219: ...A Specifications ...
Page 221: ...B StatusandErrorMessages ...
Page 227: ...C GeneralMeasurement Considerations ...
Page 233: ...D DDCEmulationCommands ...
Page 247: ...E ExamplePrograms ...
Page 250: ...E 4 Example Programs Model 6485 Picoammeter Instruction Manual ...
Page 251: ...F IEEE 488BusOverview ...
Page 266: ...F 16 IEEE 488 Bus Overview Model 6485 Picoammeter Instruction Manual ...
Page 267: ...G IEEE 488andSCPI ConformanceInformation ...
Page 311: ......