Using Tsp Commands - Keithley DAQ6510 User Manual

Data acquisition and multimeter system
Hide thumbs Also See for DAQ6510:
Table of Contents

Advertisement

Section 6: Scanning low-level DCV

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 initiates a series of temperature measurements. 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 the default settings
reset()
channelCount = 6
scanCount = 10
bufferSize = channelCount * scanCount
defbuffer1.capacity = bufferSize
scan.buffer = defbuffer1 -- not necessary when using the default buffer, but added
to show command use case.
-- set up channels
channel.setdmm("101:106", dmm.ATTR_MEAS_FUNCTION, dmm.FUNC_DC_VOLTAGE,
dmm.ATTR_MEAS_RANGE_AUTO, dmm.ON, dmm.ATTR_MEAS_AUTO_ZERO, dmm.ON,
dmm.ATTR_MEAS_NPLC, 5)
-- set up Scan
scan.add("101:106")
scan.scancount = scanCount
-- set up trigger model
trigger.model.initiate()
-- print measurement data to console
i = 1
while i <= bufferSize do
delay(2)
lastIndex = defbuffer1.n
printbuffer(i, lastIndex, defbuffer1.readings)
i = lastIndex + 1
end
-- save buffer data from defbuffer1 to USB
buffer.save(defbuffer1, "/usb1/MyData.csv")
6-6
DAQ6510 Data Acquisition / Multimeter System User's Manual
DAQ6510-900-01Rev. A / April 2018

Advertisement

Table of Contents
loading

Table of Contents