12-78 Return to Section Topics 2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library Series 2600 System SourceMeter® Instruments Reference Manual
status.measurement.*
status.measurement.condition
status.measurement.enable
status.measurement.event
status.measurement.ntr
status.measurement.ptr
* = condition, enable, event, ntr or ptr
Attribute Measurement event status register set.
Usage Reads condition, enable, event, NTR and PTR registers:
measreg = status.measurement.condition
measreg = status.measurement.current_limit.enable
measreg = status.measurement.current_limit.event
measreg = status.measurement.current_limit.ntr
measreg = status.measurement.current_limit.ptr
Writes to enable, NTR and PTR registers:
status.measurement.enable = measreg
status.measurement.ntr = measreg
status.measurement.ptr = measreg
Set measreg to one of the following values:
0 Clears all bits.
status.measurement.VOLTAGE_LIMIT Sets VLMT bit (B0).
status.measurement.VLMT Sets VLMT bit (B0).
status.measurement.CURRENT_LIMIT Sets ILMT bit (B1).
status.measurement.ILMT Sets ILMT bit (B1).
status.measurement.READING_OVERFLOW Sets ROF bit (B7).
status.measurement.ROF Sets ROF bit (B7).
status.measurement.BUFFER_AVAILABLE Sets BAV bit (B8).
status.measurement.BAV Sets BAV bit (B8).
status.measurement.OUTPUT_ENABLE Sets OE bit (B11).
status.measurement.OE Sets OE bit (B11).
status.measurement.INSTRUMENT_SUMMARY Sets INST bit (B13).
status.measurement.INST Sets INST bit (B13).
measreg can also be set to the decimal weight of the bit to be set. Examples:
To set bit B0 (VLMT), set measreg to 1 (2
0
).
To set bit B1 (ILMT), set measreg to 2 (2
1
).
To set bit B8 (BAV), set measreg to 256 (2
8
).
To set more than one bit of the register, set measreg to the sum of their decimal weights.
For example, to set bits B0 and B8, set measreg to 257 (1 + 256).
Remarks • This attribute is used to read or write to the measurement 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 257 is returned for the register. The binary equivalent is
0000000100000001. This value indicates that bit B1(VLMT) and bit B8 (BAV) are set.
• The used bits of the measurement registers are described as follows:
• Bit B0, VLMT – Set bit indicates that the voltage limit was exceeded. This bit will
be updated only when a measurement is taken or
smuX.source.compliance is
invoked.
• Bit B1, ILMT – Set bit indicates that the current limit was exceeded. This bit will be
updated only when a measurement is taken or
smuX.source.compliance is
invoked.
• Bit B7, ROF – Set bit indicates that an overflow reading has been detected.
• Bit B8, BAV – Set bit indicates that there is at least one reading stored in either or both of
the non-volatile reading buffers.
• Bit B11, OE – Set bit indicates that output enable has been asserted.
• Bit B13, INST – Set bit indicates that a bit in the measurement instrument summary
register is set.
Details See “Measurement Event Registers” in Appendix D.