Model 4200A-SCS Parameter Analyzer Reference Manual
Section 9: Keithley External Control Interface (KXCI)
4200A-901-01 Rev. C / February 2017
9-79
// Select 1mA measurement range
send(addr, ":CVU:ACZ:RANGE 1E-3", &status);
// Turn off open/short/load compensation an set
// cable len to 1.5 m
send(addr, ":CVU:CORRECT 0,0,0", &status);
send(addr, ":CVU:LENGTH 1.5", &status);
// Set test function to DC Voltage sweep from 5 to 10 V
send(addr, ":CVU:SWEEP:DCV 5,10,1", &status);
// Set 1s delay between points
send(addr, ":CVU:DELAY:SWEEP 1.0", &status);
// Start the test
send(addr, ":CVU:TEST:RUN", &status);
// Monitor the spoll byte for test completion
WaitForTestCompletion();
// Query all the data
send(addr, ":CVU:DATA:Z?", &status);
enter(recvstr, MAXLEN, &len, addr, &status);
send(addr, ":CVU:DATA:VOLT?", &status);
enter(recvstr, MAXLEN, &len, addr, &status);
send(addr, ":CVU:DATA:FREQ?", &status);
enter(recvstr, MAXLEN, &len, addr, &status);
send(addr, ":CVU:DATA:TSTAMP?", &status);
enter(recvstr, MAXLEN, &len, addr, &status);
send(addr, ":CVU:DATA:STATUS?", &status);
enter(recvstr, MAXLEN, &len, addr, &status);
// Change sweep mode to List Sweep
send(addr, ":CVU:SWEEP:LISTDCV 2,4,3,5,7", &status);
// And rerun the test
send(addr, ":CVU:TEST:RUN", &status);
WaitForTestCompletion();
send(addr, ":CVU:DATA:VOLT?", &status);
enter(recvstr, MAXLEN, &len, addr, &status);