Model 4200A-SCS Parameter Analyzer Reference Manual
Section 9: Keithley External Control Interface (KXCI)
4200A-901-01 Rev. C / February 2017
9-57
// Source setup; VAR1 linear sweep from 0 to 1V in 50 mV
// steps, with I-compliance set to 50 mA:
send(addr, "SS VR1,0,1,0.05,50E-3", &status);
// Source setup; VAR2 sweep from 0 uA to 40 uA in 10 uA steps:
send(addr, "IP 10E-6,10E-6,4,3", &status);
// Select list display mode:
send(addr, "SM DM2", &status);
// Trigger start of test:
send(addr, "MD ME1", &status);
// Wait for data ready:
while(!srq());
// Save readings in file named "PROG1":
send(addr, "SV 'D PROG1'", &status);
Program 2: Basic source-measure (user mode)
The following program demonstrates how to program the 4200A-SCS to perform a basic source-
measure operation. It assumes that channels 1 and 2 of the KXCI are configured for the SMU
function. The measured current reading performed by SMU1 (channel 1) is output to the computer.
MAXLEN = 2048;
addr = 17;
// Initialize card:
initialize(10, 0);
// Select user mode:
send(addr, "US", &status);
// Set speed to 0.01 PLC, clear buffer, and
// enable service request for data ready:
send(addr, "IT1 BC DR1",&status);
// Set SMU1 to source 1.5 V on 20 V range, and set compliance
// to 1mA:
send(addr, "DV1,1, 1.5, 1E-3", &status);
// Set SMU2 to source 2V on 20 V range, and set compliance to 1mA:
send(addr, "DV2,1,2,1E-3", &status);
// Trigger test; measure I using SMU1:
send(addr, "TI1", &status);
// Get reading:
enter(recv, MAXLEN, &len, addr, &status);
// Stop SMU outputs:
send(addr, "DV1;DV2", &status);