Appendix E: Status model
Series 2600B System SourceMeter® Instrument Reference Manual
E-14
2600BS-901-01 Rev. B / May 2013
Clearing registers
Commands to reset the status registers are listed in the table below.
In addition to these commands, you can reset the enable registers and the NTR to 0. To do this, send
the individual command to program the register with a 0 as its parameter value. The PTR registers
can be reset to their defaults by programming them with all bits on. Note that the event registers are
not programmable but can be cleared by reading them.
Commands to reset registers
Command
Description
To reset registers:
*CLS
Reset bits of the event and NTR registers to 0 and
set all PTR register bits on. Also clears the output
queue.
status.reset()
Reset bits of the event and NTR registers to 0 and
set all PTR register bits on.
Programming and reading registers
Programming enable and transition registers
The only registers that you can program are the enable and transition registers. All other registers in
the status structure are read-only registers. The following explains how to determine the parameter
values for the various commands used to program enable registers. The actual commands are
summarized in
Common commands
(on page D-1) and
Status function summary
(on page E-4).
A command to program an event enable or transition register is sent with a parameter value that
determines the desired state (0 or 1) of each bit in the appropriate register. The bit positions of the
register (see the following figure) indicate the binary parameter value and decimal equivalent. To
program one of the registers, send the decimal value for the bits to be set. The registers are
discussed further in
Enable and transition registers
(on page E-19).
Figure 173: 16-bit status register
Содержание System SourceMeter 2601B
Страница 841: ......