Section 8: TSP command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
8-98
DMM7510-901-01 Rev. B / May 2015
reset()
-- set the instrument to digitize voltage
dmm.digitize.func = dmm.FUNC_DIGITIZE_VOLTAGE
-- set the range to 10 V
dmm.digitize.range = 10
-- disable auto clearing for limit 1
dmm.digitize.limit[1].autoclear = dmm.OFF
-- set high limit on 1 to fail if reading exceeds 5 V
dmm.digitize.limit[1].high.value = 5
-- set low limit on 1 to fail if reading is less than 3 V
dmm.digitize.limit[1].low.value = 3
-- enable limit 1 checking for digitize voltage measurements
dmm.digitize.limit[1].enable = dmm.ON
-- disable auto clearing for limit 2
dmm.digitize.limit[2].autoclear = dmm.OFF
-- set high limit on 2 to fail if reading exceeds 7 V
dmm.digitize.limit[2].high.value = 7
-- set low limit on 2 to fail if reading is less than 1 V
dmm.digitize.limit[2].low.value = 1
-- enable limit 2 checking for digitize voltage measurements
dmm.digitize.limit[2].enable = dmm.ON
-- set the measure count to 50
dmm.digitize.count = 50
-- create a reading buffer that can store 100 readings
LimitBuffer = buffer.make(100)
-- make 50 readings and store them in LimitBuffer
dmm.digitize.read(LimitBuffer)
-- Check if any of the 50 readings were outside of the limits
print("limit 1 results = " .. dmm.digitize.limit[1].fail)
print("limit 2 results = " .. dmm.digitize.limit[2].fail)
-- clear limit 1 conditions
dmm.digitize.limit[1].clear()
-- clear limit 2 conditions
dmm.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 = dmm.FAIL_NONE
limit 2 results = dmm.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 = dmm.FAIL_HIGH
limit 2 results = dmm.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 = dmm.FAIL_LOW
limit 2 results = dmm.FAIL_LOW
Also see
(on page 8-95)