Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-195
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 user BIT0, set
operreg
to 1 (20).
To set user BIT4, set
operreg
to 16 (24). To set user BIT11, set
operreg
to 2048
(211).
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
This attribute is 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 code
will set B1 (Bit 1) of the user event register:
status.operation.user.enable = 2
status.operation.user.condition = 2
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