DMM6500 6½ Digit Multimeter User's Manual
Section 9: Measuring power using digitizing and TSP-Link
DMM6500-900-01Rev. A / April 2018
9-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
. 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 measure power using digitizing and TSP-Link. After the code
executes, the data is displayed in the Instrument Console of Test Script Builder.
Send the following commands for this example application:
-- Initiate the tsp-link network
tsplink.initialize()
-- Set a delay of 0.5 seconds.
delay(0.5)
-- Reset master instrument at node 1
node[1].reset()
-- Set up TSP-link trigger line 1 to trigger the subordinate node digitizer.
node[1].tsplink.line[1].mode = tsplink.MODE_TRIGGER_OPEN_DRAIN
node[1].trigger.tsplinkout[1].stimulus = trigger.EVENT_NOTIFY1
-- Set up digitize voltage function settings.
node[1].dmm.digitize.func = dmm.FUNC_DIGITIZE_VOLTAGE
node[1].dmm.digitize.samplerate = 5000
-- Set up digitize voltage range based on voltage applying to the BLE device.
node[1].dmm.digitize.range = 10
-- Set up reading buffers.
node[1].defbuffer1.capacity = 50000
-- Set up trigger model.
node[1].trigger.model.setblock(1, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY1)
node[1].trigger.model.setblock(2, trigger.BLOCK_WAIT, trigger.EVENT_TSPLINK1)
node[1].trigger.model.setblock(3, trigger.BLOCK_MEASURE_DIGITIZE, defbuffer1,
50000)
-- Reset instrument at node 2.
node[2].reset()
-- Set up TSP-link trigger line 1 to receive a trigger from master node.
node[2].tsplink.line[1].mode = node[2].tsplink.MODE_TRIGGER_OPEN_DRAIN
-- Set up digitize current function settings.
node[2].dmm.digitize.func = node[2].dmm.FUNC_DIGITIZE_CURRENT
node[2].dmm.digitize.samplerate = 5000
-- Set up digitize current range based on maximum current the BLE device can draw.
node[2].dmm.digitize.range = 1