Programming Example - Program And Read Measurement Event Register; Queues; Output Queue - Keithley 2303 User Manual

High speed
Hide thumbs Also See for 2303:
Table of Contents

Advertisement

Programming example — program and read measurement event register
The following command sequence enables the buffer full bit (B9) of the measurement register
set, and then reads the event register. After the programmed number of readings (average count)
have been taken, reading the event register will return a value of 512.
STAT:MEAS:ENAB 512
STAT:MEAS?

Queues

The power supply uses two queues, which are first-in, first-out (FIFO) registers:
The power supply status model (Figure 7-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 the power supply to talk after the
appropriate query is sent.
Output queue — Used to hold reading and response messages.
Error Queue — Used to hold error and status messages.
' Enable BF (Buffer Full).
' Read Measurement Event Register.
Status Structure 7-17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

2303b2303-pj

Table of Contents