8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-156 2450-901-01 Rev. B/September 2013
status.operation.event
This attribute reads the Operation Event Register of the status model.
Type TSP-Link accessible Affected by Where saved Default value
Usage
operationRegister = status.operation.event
The status of the operation status register
Details
This attribute reads the operation event register of the status model.
The instrument returns a decimal value that corresponds to the binary-weighted sum of all bits set in the register.
Example 1
-- decimal 20480 = binary 0101 0000 0000 0000
operationRegister = 20480
status.operation.enable = operationRegister
Sets the 12 and 14 bits of the operation
status enable register using a decimal
value.
Also see
Operation Event Register (on page C-8)
status.operation.getmap()
This attribute requests the mapped set event and mapped clear event status for a bit in the Operation Event
Registers.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
setEvent, clearEvent = status.operation.getmap(bitNumber)
The event mapped to set this bit; 0 if no mapping
The event mapped to clear this bit; 0 if no mapping
Details
When you query the mapping for a specific bit, the instrument returns the events that were mapped to set and
clear that bit. Zero (0) indicates that the bits have not been set.
Example
print(status.operation.getmap(9))
Query bit 9 of the Operation Event
Also see
Operation Event Register (on page C-8)
status.operation.setmap() (on page 8-157)