9: Integrating with a Model 3706A-S using TSP-Link Model DMM7510 7½ Digit Multimeter
9-6 DMM7510-900-01 Rev. C / September 2019
Using TSP
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 tek.com/keithley
. 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 DMM7510
Reference Manual.
To use other programming environments, you may need to make changes to the example TSP code.
By default, the DMM7510 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.
Send the following commands for this example application:
-- Initialize the TSP-Link network, where node 1 is 3706A-S and node 2 is DMM7510.
tsplink.initialize()
-- If the TSP-Link state is not online, print an error message and quit.
state = tsplink.state
print(state)
if state ~= "online" then
print("Error:\n-Check that all instruments have a different node number")
print("-Check that all instruments are connected correctly\n")
return
end
-- Reset both instruments to the default settings.
node[1].reset()
-- Node 1 is 3706A-S.
node[2].reset()
-- Node 2 is DMM7510.
--[[
Create a configuration list on DMM7510 named "myScanConfigList".
Index 1 is DCV 100 mV range, 10 channel.
Index 2 is DCV 10 V range, 20 channel.
Index 3 is ACV 1 V range, 9 channel.
Index 4 is Resistance 4W, 20 channel.
]]
node[2].dmm.measure.configlist.create("myScanConfigList")
node[2].dmm.measure.func = node[2].dmm.FUNC_DC_VOLTAGE
node[2].dmm.measure.range = 10
node[2].dmm.measure.nplc = 1