2470 High Voltage SourceMeter Instrument Reference Manual
Section 4: Sourcing and measuring
2470-901-01 Rev. A /
May
2019
4-73
Resistor grading SCPI code
Send the following commands for this example application:
Command
Description
*RST
SOURce:FUNCtion CURRent
SOURce:CURRent:RANGe 0.01
SOURce:CURRent 0.01
SOURce:CURRent:VLIM 2
SOURce:CURRent:READ:BACK ON
SENSe:FUNCtion "VOLTage"
SENSe:VOLTage:UNIT OHM
SENSe:VOLTage:RSENse ON
SENSe:VOLTage:NPLC 1
TRACe:POINts 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 in ohms
and set 4-wire remote sensing on.
Set the NPLCs to 1.
Set the reading buffer size to 10.
DIGital: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
TRIGger:DIGital6:OUT:LOGic NEG
TRIG:DIG6:OUT:PULSewidth 10e-6
TRIG:DIG6:OUT:STIMulus NOT1
Set the digital I/O lines 1 to 4 to be digital
lines that detect rising-edge or falling-edge
triggers as input.
Set digital I/O line 5 for trigger model control,
detecting falling-edge triggers as input.
Set digital I/O line 6 for trigger model control,
detecting rising-edge or falling-edge triggers
as output. 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. Set the stimulus to create a notify
event.
TRIGger:LOAD:EMPTy
TRIGger:BLOCk:BUFFer: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, 80, 120, 10, 5
TRIG:BLOC:DIG:IO 8, 15, 15
TRIG:BLOC:BRAN:ALW 9, 20
TRIG:BLOC:BRAN:LIM:CONS 10, IN, 90, 110, 13, 5
TRIG:BLOC:DIG:IO 11, 1, 15
TRIG:BLOC:BRAN:ALW 12, 20
TRIG:BLOC:BRAN:LIM:CONS 13, IN, 95, 105, 16, 5
TRIG:BLOC:DIG:IO 14, 2, 15
TRIG:BLOC:BRAN:ALW 15, 20
TRIG:BLOC:BRAN:LIM:CONS 16, IN, 99, 101, 19, 5
TRIG:BLOC:DIG:IO 17, 3, 15
TRIG:BLOC:BRAN:ALW 18, 20
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: Set up the constant limits to
perform the first test.
Block 8: If block 7 fails, drive the
digital I/O lines high.
Blocks 9, 12, 15, and 18: Branch to