![background image](http://html1.mh-extra.com/html/keithley/6482/6482_reference-manual_4059393339.webp)
F-4
Return to
6482-901-01 Rev. A / August 2012
Appendix F: Example Programs
Model 6482 Dual-Channel Picoammeter / Voltage Source Reference Manual
Linear sweep program
The program listing below performs a linear sweep as covered in
. This program sets up
the following operating modes:
•
Source and measure channel: channel 2
•
Source mode: sweep
•
Current range: 20 mA
•
Start voltage: 1 V
•
Stop voltage: 10 V
•
Step voltage: 1 V
•
Source delay: 100 ms
' Linear Sweep Program
*RST
' Restore GPIB defaults.
:FORM:ELEM CURR2
' Select channel 2 measure data.
:SENS2:CURR:RANG 20e-3
' Enable 20 mA measure range.
:SOUR2:VOLT:START 1
' 1 V Channel 2 start voltage.
:SOUR2:VOLT:STOP 10
' 10 V Channel 2 stop voltage.
:SOUR2:VOLT:STEP 1
' 1 V Channel 2 step voltage.
:SOUR2:VOLT:MODE SWE
' Select Channel 2 source sweep mode.
:SOUR2:SWE:RANG AUTO
' Channel 2 automatic source range mode.
:SOUR2:SWE:SPAC LIN
' Channel 2 linear sweep mode.
:TRIG:COUN 10
' Trigger count = sweep points.
:SOUR2:DEL 0.1
' Source delay = 0.1 s.
:OUTP2 ON
' Turn on channel 2 output.
:READ?
' Trigger and acquire readings.
' Read back result
:OUTP2 OFF
' Turn off channel 2 output.
Summary of Contents for 6482
Page 3: ......