
19-188
Return to
2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands
Series 2600A System SourceMeter® Instruments Reference Manual
status.operation.user.condition
status.operation.user.enable
status.operation.user.event
status.operation.user.ntr
status.operation.user.ptr
Attribute
Operation status user register set.
Default
0
TSP-Link
accessibility
This attribute can be accessed from a remote TSP-Link node.
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 BIT7.
status.operation.user.BIT8
Sets user BIT8.
status.operation.user.BIT9
Sets user BIT9.
status.operation.user.BIT10
Sets user BIT10.
status.operation.user.BIT11
Sets user BIT11.
status.operation.user.BIT12
Sets user BIT12.
status.operation.user.BIT13
Sets user BIT13.
status.operation.user.BIT14
Sets user BIT14.
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 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
• These attributes are used to read or write to the operation status user registers.
• Bits of the operation status user event register are set by setting the corresponding bits of the
operation status user enable register and the operation status user condition register. For
example, the following code will set B1 (Bit 1) of the operation status 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
.
Example
Sets user BIT0 of the operation status user enable register:
status.operation.user.enable = status.operation.user.BIT0