8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
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
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
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:
Also see
Operation Event Register (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
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.