2600S-901-01 Rev. C / January 2008
Return to
12-93
Series 2600 System SourceMeter® Instruments Reference Manual
Section 12: Instrument Control Library
status.operation.user.*
status.operation.user.condition
status.operation.user.enable
status.operation.user.event
status.operation.user.ntr
status.operation.user.ptr
* = condition, enable, event, ntr or ptr
Attribute
Operation user event register set.
Usage
Reads condition, enable, event, NTR and PTR registers:
operreg = status.operation.user.condition
operreg = status.operation.user.enable
operreg = status.operation.user.event
operreg = status.operation.user.ntr
operreg = status.operation.user.ptr
Writes to condition, enable, NTR and PTR registers:
status.operation.user.condition = operreg
status.operation.user.enable = operreg
status.operation.user.ntr = operreg
status.operation.user.ptr = operreg
Set
operreg
to one of the following values:
0
Clears all bits.
status.operation.user.BIT0
Sets user BIT0.
status.operation.user.BIT1
Sets user BIT1.
status.operation.user.BIT2
Sets user BIT2.
status.operation.user.BIT3
Sets user BIT3.
status.operation.user.BIT4
Sets user BIT4.
status.operation.user.BIT5
Sets user BIT5.
status.operation.user.BIT6
Sets user BIT6.
status.operation.user.BIT7
Sets user BIT.
status.operation.user.BIT8
Sets user BIT.
status.operation.user.BIT9
Sets user BIT.
status.operation.user.BIT10
Sets user BIT.
status.operation.user.BIT11
Sets user BIT.
status.operation.user.BIT12
Sets user BIT.
status.operation.user.BIT13
Sets user BIT.
status.operation.user.BIT14
Sets user BIT.
operreg
can also be set to the decimal weight of the bit to be set. Examples:
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
• 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.
Details
See “
Example
Sets user BIT0 of the operation user enable register:
status.operation.user.enable = status.operation.user.BIT0