User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-273
status.operation.user.*
.condition
.enable
.event
.ntr
.ptr
operreg can also be set to the decimal weight of the bit to be set. To set bit X where X
= 1 to 14, set operreg to 2
X
. For example:
To set user BIT0, set operreg to 1 (2
0
).
To set user BIT4, set operreg to 16 (2
4
).
To set user BIT11, set operreg to 2048 (2
11
).
To set more than one bit of the register, set operreg to the sum of their decimal
weights. For example, to set BIT0 and BIT4, set operreg to 17 (1 + 16).
Remarks
These attributes are used to read or write to the operation user registers.
Bits of the user event register are set by setting the corresponding bits of
the user enable register and the user condition register. For example, the
following will set B1 (Bit 1) of the user event register:
status.operation.user.enable = 2
status operation user condition register equals 2 or has bit 2 set.
Reading a status register returns a value. The binary equivalent of the
returned value indicates which register bits are set. The least significant bit
of the binary number is bit 0, and the most significant bit is bit 15.
For example, assume value 17 is returned for the enable register. The
binary equivalent is 0000000000010001. This value indicates that BIT0 and
BIT4 are set.
Example
Sets user BIT0 of the operation user enable register:
status.operation.user.enable =
status.operation.user.BIT0