7-4
Return to
Section Topics
2308-900-01 Rev. A / July 2008
Section 7: Status Structure
Model 2308 Portable Device Battery/Charger Simulator User’s Manual
Programming and reading registers
Programming enable registers
The enable registers can be programmed by the user. All other registers in the status structure are
read-only registers. The following explains how to ascertain the parameter value for the various
commands used to program enable registers. The actual commands are covered later in this
section (refer to
Table 7-1
and
Table 7-6
).
A command to program an event enable register is sent with a decimal parameter value that
determines the desired state (0 or 1) of each bit in the appropriate register. The bit positions of the
register (
Table 7-2
) indicate the parameter value in binary format. For example, if you wish to sets
bits B4, B3 and B1, the binary value would be 11010 (where B4=1, B3=1, B2=0, B1=1, B0=0 and
all other bits are 0). The decimal equivalent of binary 11010 is 26. Therefore, the parameter value
for the enable command is 26.
Another way to determine the decimal value is to add up the decimal weights for the bits that you
wish to set. Note that includes the decimal weight for each register bit. To set bits B4, B3 and B1,
the parameter value would be the sum of the decimal weights for those bits (16+8+2 = 26).
Table 7-1
Common and SCPI commands - reset registers and clear queues
Commands
Description
Ref
To reset registers:
*CLS
Reset all bits of the following event registers to 0:
Standard event register
Operation event register
Measurement event register
Questionable event register
STATus
:PRESet
STATus subsystem:
Reset all bits of the following enable registers to 0:
Operation event enable register
Measurement event enable register
Questionable event enable register
Note 1
To clear error queue:
*CLS
Clear all messages from error queue
Note 2
STATus
:QUEue
{:NEXT}?
:CLEar
STATus subsystem:
Error queue:
Read and clear the oldest error/status message.
Clear all messages from error queue.
Note 3
SYSTem
:ERRor?
:CLEar
SYSTem subsystem:
Read and clear the oldest error/status message.
Clear all messages from error queue.
Note 3
Notes:
1. The standard event enable register is not reset by STATus:PRESet or *CLS. Send the 0
parameter value with *ESE to reset all bits of that enable register to 0 (see
Status byte and
service request commands
for service request enable register).
2. STATus:PRESet has no effect on the error queue.
3. Use either of the two :CLEar commands to clear the error queue.
Summary of Contents for 2308
Page 2: ......
Page 12: ...This page left blank intentionally...
Page 32: ...This page left blank intentionally...
Page 106: ...This page left blank intentionally...
Page 140: ...This page left blank intentionally...
Page 208: ...This page left blank intentionally...
Page 220: ...This page left blank intentionally...