7½ Digit Multimeter User's Manual Section 5:
Measuring DC voltage with high accuracy
DMM7510-900-01 Rev. B / May 2015 5-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 the Keithley Instruments website. 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 Model DMM7510 is configured to use 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. For Command Set, select TSP.
4. At the prompt to reboot, select Yes.
This sequence of TSP commands makes a single high accuracy DC voltage measurement when a
device under test is connected to the Model DMM7510.
After the code executes, the reading 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()
--Set the measure function to DC voltage.
dmm.measure.func = dmm.FUNC_DC_VOLTAGE
--Set the measurement range to 10 V
dmm.measure.range = 10
--Set the number of power line cycles to 10
dmm.measure.nplc = 10
--Set the input impedance to auto so it selects 10 G for the 10V range
dmm.measure.inputimpedance = dmm.IMPEDANCE_AUTO
--Enable autozero (set to dmm.OFF to disable)
dmm.measure.autozero.enable = dmm.ON
--Set the averaging filter type to repeating
dmm.measure.filter.type = dmm.FILTER_REPEAT_AVG
--Set filter count to 100
dmm.measure.filter.count = 100
--Enable filter
dmm.measure.filter.enable = dmm.ON
--Read the voltage value
print(dmm.measure.read())
北京海洋兴业科技股份有限公司(证券代码:839145)