2470 High Voltage SourceMeter Instrument Reference Manual
Section 4: Sourcing and measuring
2470-901-01 Rev. A /
May
2019
4-79
Resistor sorting SCPI code
Send the following commands for this example application:
Command
Description
*RST
SOUR:FUNC CURR
SOUR:CURR:RANG 0.01
SOUR:CURR 0.01
SOUR:CURR:VLIM 2
SOUR:CURR:READ:BACK ON
SENS:FUNC "VOLTage"
SENS:VOLT:UNIT OHM
SENS:VOLT:RSEN ON
SENS:VOLT:NPLC 1
TRAC:POIN 10
Reset the 2470.
Set the instrument to source current with a
range of 10 mA and a voltage limit of 2 V.
Turn source readback on.
Set the instrument measure voltage and
set to display ohms. Set 4-wire remote
sensing on.
Set the NPLCs to 1.
Set the reading buffer size to 10.
DIG:LINE1:MODE DIG, OUT
DIG:LINE2:MODE DIG, OUT
DIG:LINE3:MODE DIG, OUT
DIG:LINE4:MODE DIG, OUT
DIG:LINE5:MODE TRIG, IN
TRIGger:DIG5:IN:EDGE FALL
DIG:LINE6:MODE TRIG, OUT
TRIG:DIG6:OUT:LOG NEG
TRIG:DIG6:OUT:PULS 10e-6
TRIG:DIG6:OUT:STIM NOT1
Set the digital I/O lines 1 to 4 to be digital
output lines.
Set digital I/O line 5 for trigger control,
detecting falling-edge triggers as input.
Set digital I/O line 6 as a trigger output
line. Set the output trigger logic of the
trigger event generator to negative. Set
the length of time that the trigger line is
asserted to 10e-6 s. Set the stimulus to
create as Notify1.
TRIG:LOAD "Empty"
TRIG:BLOC:BUFF:CLE 1, "defbuffer1"
TRIG:BLOC:WAIT 2, DIG5
TRIG:BLOC:SOUR:STAT 3, ON
TRIG:BLOC:DEL:CONS 4, 0.001
TRIG:BLOC:MEAS 5, "defbuffer1"
TRIG:BLOC:SOUR:STAT 6, OFF
TRIG:BLOC:BRAN:LIM:CONS 7, IN, 99, 101, 17, 5
TRIG:BLOC:BRAN:LIM:CONS 8, IN, 101, 103, 19, 5
TRIG:BLOC:BRAN:LIM:CONS 9, IN, 104, 106, 21, 5
Clear any existing trigger model
commands from the instrument.
Set up the trigger model:
Block 1: Clear default buffer 1.
Block 2: Set up a wait block to wait
for digital line 5.
Block 3: Turn the source output on.
Bock 4: Set a constant delay of
.001 s.
Block 5: Make a measurement and
store it in default buffer 1.
Block 6: Turn the output off.
Block 7: Check if 99
≤
R
≤
101; if
yes, go to Block 17.
Block 8: Check if 101
≤
R
≤
103; if
yes, go to Block 19.
Block 9: Check if 104
≤
R
≤
106; if