14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-182 2470-901-01 Rev. A / May 2019
Example
-- 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 B-7)
Understanding bit settings (on page B-15)
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.request_enable = status.OSB
status.operation.setmap(0, 4918, 4917)
status.operation.enable = 1
defbuffer1.clear()
defbuffer1.fillmode = buffer.FILL_ONCE
defbuffer1.capacity = 10
smu.measure.count = 10
smu.measure.read()
print(status.operation.event)
Set bits in the Status Request Enable Register to record an enabled event in the Operation Status Register.
Map event number 4918 (buffer full) to set bit 0 in the Operation Event Register and event number 4917 (buffer
empty) to clear bit 0.
Clear defbuffer1.
Set defbuffer1 to fill once.
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 B-7)