User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-271
status.operation.*
.condition
.enable
.event
.ntr
.ptr
Remarks
operreg can also be set to the decimal weight of the bit to be set.
To set bit B0 (CAL), set operreg to 1 (2
0
).
To set bit B4 (MEAS), set operreg to 16 (2
4
).
To set bit B11 (PRMPTS), set operreg to 2048 (2
11
).
To set bit B12 (USER), set operreg to 4096 (2
12
).
To set bit B14 (PROG), set operreg to 16384 (2
14
).
To set more than one bit of the register, set operreg to the sum of their decimal
weights. For example, to set bits B0 and B4, set operreg to 17 (1 + 16).
Details
These attributes are used to read or write to the operation event registers.
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 bit B0 (CAL) and bit B4
(MEAS) are set.
The used bits of the operation event registers are described as follows:
Bit B0, CAL - Set bit indicates that one or more channels are calibrating.
Bit B4, MEAS - Bit will be set when taking an overlapped measurement, but it will
not set when taking a normal synchronous measurement.
Bit B11, PRMPTS - Set bit indicates that command prompts are enabled.
Bit B12, USER - Set bit indicates that an enabled bit in the operation status user
register is set.
Bit B14, PROG - Set bit indicates that a program is running.
Example
Sets the MEAS bit of the operation enable register:
status.operation.enable =
status.operation.MEAS