![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_reference-manual_4033478840.webp)
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Appendix C: Status model
2450-901-01 Rev. B/September 2013
C-23
Using TSP commands:
reset()
-- Clear the status byte
status.clear()
-- Map bit 0 of operational status register to set on buffer
-- full (4918) and clear on buffer empty (4917).
status.operation.setmap(0, 4918, 4917)
-- 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
-- Clear the buffer and make it smaller
defbuffer1.clear()
defbuffer1.capacity = 100
smu.source.range = 1
smu.source.level = 1
smu.source.ilimit.level = 10e-3
-- Set the measure count to fill the buffer
smu.measure.count = 100
smu.measure.range = 10e-3
smu.source.output = smu.ON
smu.measure.read(defbuffer1)
smu.source.output = smu.OFF
printbuffer(1, defbuffer1.n, defbuffer1)