Download Agilent Technologies 6834B User`s guide

Transcript
4 - Programming Examples
OFFSET = -4096
4096 DATA POINTS
OFFSET = -2048
4096 DATA POINTS
OFFSET = 0
4096 DATA POINTS
OFFSET = 0 to 2
9
4096 DATA POINTS
TIME
ACQUISITION
TRIGGER
Figure 4-4. Pre-event and Post-event Triggering
Programming the Status Registers
You can use status register programming to determine the operating condition of the ac source at any
time. For example, you may program the ac source to generate an interrupt (assert SRQ) when an event
such as a current limit occurs. When the interrupt occurs, your program can then act on the event in the
appropriate fashion.
Figure 4-5 shows the status register structure of the ac source. Table 4-1 defines the status bits. The
Standard Event, Status Byte, and Service Request Enable registers and the Output Queue perform
standard GPIB functions as defined in the IEEE 488.2 Standard Digital Interface for Programmable
Instrumentation. The Operation Status, Questionable Status, and Questionable Instrument Isummary
Status registers implement functions that are specific to the ac source.
Power-On Conditions
Refer to the *RST command description in Chapter 3 for the power-on conditions of the status registers.
Operation Status Group
The Operation Status registers record signals that occur during normal operation. The group consists of
the following registers:
Register
Condition
Command
STAT:OPER:COND?
PTR Filter
STAT:OPER:PTR <n>
142
Description
A register that holds real-time status of the circuits
being monitored. It is a read-only register.
A positive transition filter that functions as
described under STAT:OPER:NTR|PTR
commands in Chapter 3. It is a read/write register.