12-88 Return to Section Topics 2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library Series 2600 System SourceMeter® Instruments Reference Manual
status.operation.*
status.operation.condition
status.operation.enable
status.operation.event
status.operation.ntr
status.operation.ptr
* = condition, enable, event, ntr or ptr
Attribute Operation event status register set.
Usage Reads condition, enable, event, NTR and PTR registers:
operreg = status.operation.condition
operreg = status.operation.enable
operreg = status.operation.event
operreg = status.operation.ntr
operreg = status.operation.ptr
Writes to enable, NTR and PTR registers:
status.operation.enable = operreg
status.operation.ntr = operreg
status.operation.ptr = operreg
Set operreg to one of the following values:
0 Clears all bits.
status.operation.CALIBRATING Sets CAL bit (B0).
status.operation.CAL Sets CAL bit (B0).
status.operation.MEASURING Sets MEAS bit (B4).
status.operation.MEAS Sets MEAS bit (B4).
status.operation.PROMPTS Sets PRMPTS bit (B11).
status.operation.PRMPTS Sets PRMPTS bit (B11).
status.operation.USER Sets USER bit (B12).
status.operation.INSTRUMENT_SUMMARY Sets INST bit (B13).
status.operation.INST Sets INST bit (B13).
status.operation.PROGRAM_RUNNING Sets PROG bit (B14).
status.operation.PROG Sets PROG bit (B14).
operreg can also be set to the decimal weight of the bit to be set. Examples:
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 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).
Remarks • This attribute is 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 B13, INST – Set bit indicates that an enabled bit in the operation status instrument
summary register is set.
•
Bit B14, PROG – Set bit indicates that a program is running.
Details See “Operation Event Registers” in Appendix D.
Example Sets the MEAS bit of the operation enable register:
status.operation.enable = status.operation.MEAS