' 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.