System SourceMeter® Instrument Reference Manual Section 3:
2600BS-901-01 Rev. C / August 2016 3-31
Sweep programming examples
Procedures for programming and running a sweep for three sweep types are given on the following
pages. Each of these procedures includes commands for a typical sweep example. The following
table summarizes parameters for each of these examples.
You can retrieve the source code for the factory scripts by using the scriptVar.list() (on page 7-183)
or scriptVar.source (on page 7-187) commands.
Sweep example parameters
Sweep type Parameters for sweep examples
Number of points: 10
Points: 3 V, 1 V, 4 V, 5 V, 2 V
Linear staircase sweep example
The programming example below illustrates a staircase sweep.
-- Restore Series 2600B defaults.
smua.reset()
-- Set compliance to 1 V.
1. Configure source functions.
Restores defaults and sets the
compliance to 1 V.
-- Linear staircase sweep
-- 1 mA to 10 mA, 0.1 second delay,
-- 10 points.
SweepILinMeasureV(smua, 1e-3, 10e-3, 0.1, 10)
2. Configure and execute the
sweep.
Configures a linear staircase
current sweep from 1 mA to 10 mA
with 10 points and a 0.1 second
printbuffer(1, 10, smua.nvbuffer1.readings)
3. Request readings.
Requests readings from buffer 1.