![Tektronix Keithley SourceMeter 2450 User Manual Download Page 53](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2450/keithley-sourcemeter-2450_user-manual_1077861053.webp)
Section 6: Leakage current and insulation resistance
Model 2450 Interactive SourceMeter® Instrument User's Manual
6-6
2450-900-01 Rev. A / June 2013
Setting up the leakage current example using SCPI commands
The following example SCPI code makes leakage current measurements using the Duration Loop
trigger template. Specifically, current readings are taken every 200 ms for 60 seconds. The test
voltage is 20 V.
Send the following commands for this example application:
Command
Description
*RST
:SOUR:FUNC VOLT
:SOUR:VOLT 20
:SOUR:VOLT:ILIMIT 0.01
:SENSE:FUNC "CURR"
:ROUT:TERM REAR
:CURR:RANG:AUTO ON
:SENSE:CURR:NPLC 1
:TRIG:LOAD:LOOP:DUR 60, 0.2
:OUTP ON
:INIT
*WAI
:TRAC:ACT? "defbuffer1"
:TRAC:DATA? 1, <number of readings>,
"defbuffer1", READ, REL
:SOUR:VOLT 0
:OUTP OFF
•
Reset the Model 2450.
•
Set to source voltage.
•
Set the source voltage to 20 V.
•
Set the current limit to 10 mA.
•
Set the instrument to measure current.
•
Select the rear-panel terminals for the
measurement.
•
Set the current range to autorange.
•
Set the number of power line cycles to 1.
•
Load the duration loop to run for 60 s at
200 ms intervals.
•
Turn on the output.
•
Trigger the measurement.
•
Wait for the measurement to finish.
•
Query the number of readings in
defbuffer1
.
•
Return readings and time.
•
Discharge the capacitor to 0 V
•
Turn off the output.
Setting up the leakage current example using TSP commands
The following example TSP code is designed to be run from Keithley Instruments Test Script Builder
(TSB). TSB is a software tool included on one of the CD-ROMs that came with your Model 2450.
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 2450 Reference Manual.
To use other programming environments, you may need to make changes to the example TSP code.
By default, the Model 2450 is configured to use SCPI commands. You must select the TSP command
set before attempting to send TSP commands to the instrument.
To enable TSP commands:
1. Press the
MENU
key.
2. Under System, select
Settings
.
3. Select the button next to Command Set and select
TSP
.
4. You are prompted to reboot. Select
Yes
.