C-12
Return to
2600AS-901-01 Rev. B / September 2008
Appendix C: Status Model
Series 2600A System SourceMeter® Instruments Reference Manual
Clearing registers and queues
When the SourceMeter instrument is turned on, various register status elements will be set as
follows:
•
The PON bit in the
status.condition
register will be set.
•
Bits such as the output enable and over-temperature bits will be set appropriately.
•
All enable registers will be set to 0.
•
All NTR registers will be set to 0.
•
All used PTR register bits will be set to 1.
•
The two queues will be empty.
Commands to reset the status registers and the Error Queue are listed in
these commands, any programmable register can be reset by sending the 0 parameter value with
the individual command to program the register.
The instrument automatically clears the output queue when the instrument transitions from the
local control state to the remote control state.
Programming and reading registers
Programming enable and transition registers
The only registers that can be programmed by the user are the enable and transition registers. All
other registers in the status structure are read-only registers. The following explain how to
determine the parameter values for the various commands used to program enable registers. The
actual commands are summarized in
and
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 (
) indicate the binary parameter value and decimal equivalent. To program one
of the registers, send the decimal value for the bit(s) to be set. The registers are discussed further
in
Enable and transition registers
Table C-2
Commands to reset registers and clear queues
Commands
Description
To Reset Registers:
*CLS
Clears the output queue
Reset bits of status registers to 0.
status.reset()
Reset bits of status registers to 0.
To Clear Error Queue:
errorqueue.clear()
Clear all messages from Error Queue.