Data Acquisition / Multimeter System User's Manual Section 10: Pre-
DAQ6510-900-01Rev. A / April 2018 10-5
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 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 DAQ6510
Reference Manual.
To use other programming environments, you may need to make changes to the example TSP code.
By default, the DAQ6510 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 monitors the temperature measurement on the first channel to
ensure the test environment has reached the required temperature to begin scanning. After the code
executes, the data is displayed in the Instrument Console of Test Script Builder.
Send the following commands for this example application:
-- monitor temperature on channel 101
reset()
channel.setdmm("101", dmm.ATTR_MEAS_FUNCTION, dmm.FUNC_TEMPERATURE,
dmm.ATTR_MEAS_TRANSDUCER, dmm.TRANS_THERMOCOUPLE, dmm.ATTR_MEAS_THERMOCOUPLE,
dmm.THERMOCOUPLE_K, dmm.ATTR_MEAS_REF_JUNCTION, dmm.REFJUNCT_INTERNAL)
channel.setdmm("101", dmm.ATTR_MEAS_UNIT, dmm.UNIT_CELSIUS)
-- set limit high on monitor and trigger scan when high limit exceeds
scan.monitor.channel = "101"
scan.monitor.limit.high.value = 30
scan.monitor.mode = scan.MODE_HIGH
-- scan 2-wire resistance on channel 102:105
channel.setdmm("102:105", dmm.ATTR_MEAS_FUNCTION, dmm.FUNC_RESISTANCE,
dmm.ATTR_MEAS_RANGE_AUTO, dmm.ON)
-- create scan
scan.create("101:105")
scan.scancount = 10
-- initiates the monitoring of channel 101 conditions, which will enable the scan
when it crosses the temperature threshold.
trigger.model.initiate()