
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-224
2461-901-01 A/November 2015
status.operation.event
This attribute reads the Operation Event Register of the status model.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Not applicable
Not applicable
Not applicable
Usage
operationRegister
= status.operation.event
operationRegister
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
status.operation.setmap(0, 4917, 4916)
defbuffer1.capacity = 10
smu.measure.count = 10
smu.measure.read()
print(status.operation.event)
Maps event number 4917 (Buffer Full) to
set bit 0 in the Operation Event Register
and event number 4916 (Buffer Empty)
to clear bit 0. Resizes
defbuffer1
to
10 readings.
Sets the measure count to 10 readings
and makes a measurement.
Reads the operation event register.
Output:
0
Also see
(on page C-8)
status.operation.getmap()
This function 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
)
setEvent
The event mapped to set this bit; 0 if no mapping
clearEvent
The event mapped to clear this bit; 0 if no mapping
bitNumber
The bit number to check
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.