High Voltage SourceMeter Instrument Reference Manual Section 4:
2470-901-01 Rev. A / May 2019 4-63
Sweep programming examples
The following examples show programming examples of typical sweeps.
Linear sweep with a voltage source
The following examples perform a linear sweep that uses a voltage source. They perform
the following actions:
• Reset the instrument to its defaults.
• Set the source function to voltage.
• Set the source range to 20 V.
• Set the source limit for measurements to 0.02 A
• Set the measure function to current.
• Set the current range to automatic.
• Set up a linear sweep that sweeps from 0 to 10 V in 21 steps with a source delay of 200 ms.
• In TSP only, name the configuration list that is created for this sweep RES.
• Start the sweeps.
• Wait until all commands are complete and then query the source value and measurement
reading.
No buffer is defined, so the data is stored in defbuffer1. See Reading buffers (on page 6-1
) for
more information about reading buffers.
Using SCPI commands
*RST
SOUR:FUNC VOLT
SOUR:VOLT:RANG 20
SOUR:VOLT:ILIM 0.02
SENS:FUNC "CURR"
SENS:CURR:RANG:AUTO ON
SOUR:SWE:VOLT:LIN 0, 10, 21, 200e-3
INIT
*WAI
TRAC:DATA? 1, 21, "defbuffer1", SOUR, READ
Using TSP commands
reset()
smu.measure.func = smu.FUNC_DC_CURRENT
smu.measure.autorange = smu.ON
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.range = 20
smu.source.ilimit.level = 0.02
smu.source.sweeplinear("RES", 0, 10, 21, 200e-3)
trigger.model.initiate()
waitcomplete()
printbuffer(1, 21, defbuffer1.sourcevalues, defbuffer1.readings)