Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-112
2461-901-01 A/November 2015
reset()
-- set the instrument to measure digitized voltage
smu.digitize.func = smu.FUNC_DIGITIZE_VOLTAGE
-- set the range to 10 V
--set the instrument to source current
smu.source.func=smu.FUNC_DC_CURRENT
smu.digitize.range = 10
-- disable auto clearing for limit 1
smu.digitize.limit[1].autoclear = smu.OFF
-- set high limit on 1 to fail if reading exceeds 5 V
smu.digitize.limit[1].high.value = 5
-- set low limit on 1 to fail if reading is less than 3 V
smu.digitize.limit[1].low.value = 3
-- enable limit 1 checking for digitized voltage measurements
smu.digitize.limit[1].enable = smu.ON
-- disable auto clearing for limit 2
smu.digitize.limit[2].autoclear = smu.OFF
-- set high limit on 2 to fail if reading exceeds 7 V
smu.digitize.limit[2].high.value = 7
-- set low limit on 2 to fail if reading is less than 1 V
smu.digitize.limit[2].low.value = 1
--- set the beeper to sound if the reading exceeds the limits for limit 2
smu.digitize.limit[2].audible = smu.AUDIBLE_FAIL
-- enable limit 2 checking for digitized voltage measurements
smu.digitize.limit[2].enable = smu.ON
-- set the digitize count to 50
smu.digitize.count = 50
-- create a reading buffer that can store 100 readings
LimitBuffer = buffer.make(100)
-- make 50 readings and store them in LimitBuffer
smu.digitize.read(LimitBuffer)
-- Check if any of the 50 readings were outside of the limits
print("limit 1 results = " .. smu.digitize.limit[1].fail)
print("limit 2 results = " .. smu.digitize.limit[2].fail)
-- clear limit 1 conditions
smu.digitize.limit[1].clear()
-- clear limit 2 conditions
smu.digitize.limit[2].clear()
Example output that shows all readings are within limit values (all readings between 3 V and 5 V):
limit 1 results = smu.FAIL_NONE
limit 2 results = smu.FAIL_NONE
Example output showing at least one reading failed limit 1 high values (a 6 V reading would cause this
condition or a reading greater than 5 V but less than 7 V):
limit 1 results = smu.FAIL_HIGH
limit 2 results = smu.FAIL_NONE
Example output showing at least one reading failed limit 1 and 2 low values (a 0.5 V reading would cause this
condition or a reading less than 1 V):
limit 1 results = smu.FAIL_LOW
limit 2 results = smu.FAIL_LOW
Also see
Calculations that you can apply to measurements
(on page 3-82)
smu.digitize.limit[Y].low.value
(on page 8-116)
smu.digitize.limit[Y].high.value
(on page 8-115)