![background image](http://html2.mh-extra.com/html/keithley/dmm6500/dmm6500_user-manual_4023258086.webp)
Section 8: Grading and binning resistors
DMM6500 6½ Digit Multimeter User's Manual
8-6
DMM6500-900-01Rev. A / April 2018
Using TSP commands
The following TSP code is designed to be run from Keithley Instruments Test Script Builder (TSB).
TSB is a software tool that is available from
. You can install and use TSB to write
code and develop scripts for TSP-enabled instruments. Information about how to use TSB is in the
online help for TSB and in the “Introduction to TSP operation” section of the
Model DMM6500
Reference Manual
.
To use other programming environments, you may need to make changes to the example TSP code.
By default, the DMM6500 uses the SCPI command set. You must select the TSP command set
before sending TSP commands to the instrument.
To enable TSP commands:
1. Press the
MENU
key.
2. Under System, select
Settings
.
3. Set the Command Set to
TSP
.
4. At the prompt to reboot, select
Yes
.
This sequence of TSP commands will grade resistors into established bins of accuracy. After the
code executes, the data is displayed in the Instrument Console of Test Script Builder.
Send the following commands for this example application:
-- Reset the instrument to default settings
reset()
-- Create a user-defined reading buffer that can store up to 1 million readings
bufferVar = buffer.make(1000000)
bufferVar.clear()
--Set the measure function to 4-wire resistance
dmm.measure.func = dmm.FUNC_4W_RESISTANCE
-- Set the number of power line cycles to 1
dmm.measure.nplc = 1
-- Immediately update autozero reference measurements and then disable the autozero
function
dmm.measure.autozero.once()
-- Enable offset compensation for more accurate resistance reading
dmm.measure.offsetcompensation.enable = dmm.ON
-- Configure digital I/O lines 1 through 4 as digital outputs. These I/O lines are
used to output binning code to component handler
digio.line[1].mode = digio.MODE_DIGITAL_OUT
digio.line[2].mode = digio.MODE_DIGITAL_OUT
digio.line[3].mode = digio.MODE_DIGITAL_OUT
digio.line[4].mode = digio.MODE_DIGITAL_OUT
-- Clear digital I/O lines to 0
digio.line[1].state = digio.STATE_LOW
digio.line[2].state = digio.STATE_LOW
digio.line[3].state = digio.STATE_LOW
digio.line[4].state = digio.STATE_LOW
-- Configure digital I/0 line 5 as a trigger input used to detect
-- the start-of-test trigger from the component handler
digio.line[5].mode = digio.MODE_TRIGGER_IN
-- Set trigger detector to detect falling edge
trigger.digin[5].edge = trigger.EDGE_FALLING
-- Configure digital I/0 line 6 as a trigger output used to send