Models 707B and 708B Switching Matrix Reference Manual
Appendix C: Status model
707B-901-01 Rev. A / August 2010
C-13
Clearing registers and queues
Commands to reset the status registers and the Error queue are listed in the table below. In addition
to these commands, any programmable register can be reset by sending the individual command to
program the register with a 0 as its parameter value.
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.
The instrument automatically clears the output queue when the instrument transitions from the local
control state to the remote control state.
Startup state
When the Switching Matrix is turned on, various register status elements will be set as follows:
•
The PON bit in the
status.operation.condition
register will be set.
•
Other bits will be set appropriately based on the system's power-on configuration.
•
All enable registers (.enable) will be set to 0.
•
All negative transition registers (.ntr) will be set to 0.
•
All used positive transition registers (.ptr) bits will be set to 1.
•
The two queues will be empty.
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 explains how to determine
the parameter values for the various commands used to program enable registers. The actual
commands are summarized in Common commands and Status function summary.
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.