![Tektronix Keithley SourceMeter 2470 Reference Manual Download Page 980](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2470/keithley-sourcemeter-2470_reference-manual_1078034980.webp)
Appendix B: Status model
2470 High Voltage SourceMeter Instrument Reference Manual
B-18
2470-901-01 Rev. A /
May
2019
Using TSP commands:
reset()
-- Clear the status byte
status.clear()
-- Map the event numbers
-- Map bit 0 of operational status register to set on reaching the
-- source limit (5080) and clear on dropping below the source
-- limit (5081)
status.operation.setmap(0, 5080, 5081)
-- Enable bit 0 to flow through to the status byte.
status.operation.enable = 1
-- Enable the Operational Summary Bit to set the Master
-- Summary Bit/RQS
status.request_enable = status.OSB
-- This code will make SMU reach V limit if output terminals are open
smu.source.func = smu.FUNC_DC_CURRENT
smu.source.range = 1e-3
smu.source.level = 1e-3
smu.source.vlimit.level = 1
smu.measure.func = smu.FUNC_DC_VOLTAGE
smu.source.output = smu.ON
print(smu.measure.read())
smu.source.output = smu.OFF
SRQ when trigger model is finished
This example shows you how to generate a service request (SRQ) when the trigger model is
completed and the 2470 has returned to the Idle state. After configuring the status model, this code
configures and runs the trigger model. When the trigger model completes, the instrument generates
an SRQ and the data is returned.
Using SCPI commands:
*RST
TRAC:CLE
STAT:CLE
STAT:OPER:MAP 0, 2732, 2731
STAT:OPER:ENAB 1
*SRE 128
SOUR:VOLT 1
SOUR:VOLT:ILIM 10e-3
TRIG:BLOC:BUFF:CLE 1
TRIG:BLOC:SOUR:STAT 2, ON
TRIG:BLOC:DEL:CONS 3, 100e-3
TRIG:BLOC:MEAS 4, "defbuffer1"
TRIG:BLOC:BRAN:COUN 5, 9, 3
TRIG:BLOC:SOUR:STAT 6, OFF
INIT
*WAI
TRAC:DATA? 1, 9, "defbuffer1", READ