F-2 Return to Section Topics 6482-901-01 Rev. A / August 2012
Appendix F: Example Programs Model 6482 Dual-Channel Picoammeter / Voltage Source Reference Manual
Introduction
This section provides listings of pseudo-code for example programs throughout this manual.
These programs include:
• Basic measurement program from Section 3.
• Data store program from Section 6.
• Sweep program from Section 7.
• Limit test program from Section 10.
Basic measurement program
The program listing below performs basic single-channel device under test (DUT) measurement
as covered in Section 3. This program sets up the following operating modes:
• Channel 2 measurement range: 2 μA
• Channel 2 source range: 10 V
• Channel 2 source output level: 10 V
'Basic Measurement Program
*RST ' Restore GPIB Defaults
:SENS2:CURR:RANG 2E-6 ' Select 2 uA Channel 2 measure range
:FORM:ELEM CURR2 ' Select Channel 2 reading.
:SOUR2:VOLT:RANG 10 ' Select 10 V Channel 2 source range.
:SOUR2:VOLT 10 ' Output 10 V on channel 2.
:OUTP2 ON ' Turn on channel 2 output.
:READ? ' Trigger and request reading.
' Read back result
:OUTP2 OFF ' Turn off channel 2 output.