The Keithley 2000 multimeter is controlled remotely with SCPI commands. TestFlow's instrument library holds 91 commands for it, 25 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the 2000 on a real bench.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Keithley 2000's VISA address
# Paste the address of your Keithley 2000 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write(":SENSe:FUNCtion \"VOLT:DC\"") # Func DCV
print(inst.query(":MEASure:VOLTage:DC?")) # Measure DCV
inst.close()Describe the test in a sentence, for example “func dcv on the 2000, then measure dcv and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
91 commands in 16 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :SENSe:FUNCtion "VOLT:DC" | Func DCV. Selects DC voltage as the active measurement function. | None |
| :SENSe:FUNCtion "VOLT:AC" | Func ACV. Selects AC voltage as the active measurement function. | None |
| :SENSe:FUNCtion "CURR:DC" | Func DCI. Selects DC current as the active measurement function. | None |
| :SENSe:FUNCtion "CURR:AC" | Func ACI. Selects AC current as the active measurement function. | None |
| :SENSe:FUNCtion "RES" | Func 2W Resistance. Selects 2-wire resistance as the active measurement function. | None |
| :SENSe:FUNCtion "FRES" | Func 4W Resistance. Selects 4-wire resistance as the active measurement function. | None |
| :SENSe:FUNCtion "FREQ" | Func Frequency. Selects frequency (voltage input) as the active measurement function. | None |
| :SENSe:FUNCtion "PER" | Func Period. Selects period (voltage input) as the active measurement function. | None |
| :SENSe:FUNCtion "CONT" | Func Continuity. Selects continuity as the active measurement function. | None |
| :SENSe:FUNCtion "DIOD" | Func Diode. Selects diode test as the active measurement function. | None |
| :SENSe:FUNCtion "TEMP" | Func Temperature. Selects temperature as the active measurement function. | None |
| :SENSe:FUNCtion "<Function>" | Set Function. Sets the active measurement function using its SCPI function string. | Text: VOLT:DC,VOLT:AC,CURR:DC,CURR:AC,RES,FRES,FREQ,PER,TEMP,DIOD,CONT |
| :SENSe:FUNCtion? | Read Function. Queries the currently selected measurement function string. | None |
| :SENSe:VOLTage:DC:RANGe <Range> | Set DCV Range. Sets the DC voltage measurement range in volts. | Number: 0.1,1,10,100,1000 |
| :SENSe:VOLTage:AC:RANGe <Range> | Set ACV Range. Sets the AC voltage measurement range in volts. | Number: 0.1,1,10,100,750 |
| :SENSe:CURRent:DC:RANGe <Range> | Set DCI Range. Sets the DC current measurement range in amps. | Number: 0.01,0.1,1,3 |
| :SENSe:CURRent:AC:RANGe <Range> | Set ACI Range. Sets the AC current measurement range in amps. | Number: 1,3 |
| :SENSe:RESistance:RANGe <Range> | Set 2W Res Range. Sets the 2-wire resistance measurement range in ohms. | Number: 10,100,1000,10000,100000,1000000,10000000,100000000 |
| :SENSe:FRESistance:RANGe <Range> | Set 4W Res Range. Sets the 4-wire resistance measurement range in ohms. | Number: 1,10,100,1000,10000,100000,1000000,10000000,100000000 |
| :SENSe:VOLTage:DC:RANGe:AUTO ON | DCV Autorange On. Enables autorange for the DC voltage function. | None |
| :SENSe:VOLTage:DC:RANGe:AUTO OFF | DCV Autorange Off. Disables autorange for the DC voltage function. | None |
| :SENSe:VOLTage:AC:RANGe:AUTO ON | ACV Autorange On. Enables autorange for the AC voltage function. | None |
| :SENSe:VOLTage:AC:RANGe:AUTO OFF | ACV Autorange Off. Disables autorange for the AC voltage function. | None |
| :SENSe:CURRent:DC:RANGe:AUTO ON | DCI Autorange On. Enables autorange for the DC current function. | None |
| :SENSe:CURRent:DC:RANGe:AUTO OFF | DCI Autorange Off. Disables autorange for the DC current function. | None |
| :SENSe:RESistance:RANGe:AUTO ON | Res Autorange On. Enables autorange for the 2-wire resistance function. | None |
| :SENSe:RESistance:RANGe:AUTO OFF | Res Autorange Off. Disables autorange for the 2-wire resistance function. | None |
| :SENSe:VOLTage:DC:NPLCycles <NPLC> | Set DCV NPLC. Sets the integration time for DC voltage in number of power line cycles. | Number: 0.01,0.1,1,10 |
| :SENSe:CURRent:DC:NPLCycles <NPLC> | Set DCI NPLC. Sets the integration time for DC current in number of power line cycles. | Number: 0.01,0.1,1,10 |
| :SENSe:RESistance:NPLCycles <NPLC> | Set 2W Res NPLC. Sets the integration time for 2-wire resistance in number of power line cycles. | Number: 0.01,0.1,1,10 |
| :SENSe:FRESistance:NPLCycles <NPLC> | Set 4W Res NPLC. Sets the integration time for 4-wire resistance in number of power line cycles. | Number: 0.01,0.1,1,10 |
| :SENSe:VOLTage:AC:DETector:BANDwidth <Bandwidth> | Set ACV Detector BW. Sets the AC voltage detector bandwidth in Hz (3, 30 or 300). | Number: 3,30,300 |
| :SENSe:CURRent:AC:DETector:BANDwidth <Bandwidth> | Set ACI Detector BW. Sets the AC current detector bandwidth in Hz (3, 30 or 300). | Number: 3,30,300 |
| :SENSe:VOLTage:DC:AVERage:COUNt <Count> | Set DCV Average Count. Sets the number of readings in the DC voltage filter average (1 to 100). | Number |
| :SENSe:VOLTage:DC:AVERage:TCONtrol <Type> | Set DCV Average TCon. Sets the DC voltage averaging filter type to repeating or moving. | Text: REPeat,MOVing |
| :SENSe:VOLTage:DC:AVERage:STATe ON | DCV Average On. Enables the averaging filter for the DC voltage function. | None |
| :SENSe:VOLTage:DC:AVERage:STATe OFF | DCV Average Off. Disables the averaging filter for the DC voltage function. | None |
| :SENSe:VOLTage:DC:REFerence:ACQuire | Acquire DCV Rel. Acquires the present DC voltage reading and stores it as the relative (null) offset. | None |
| :SENSe:VOLTage:DC:REFerence <Offset> | Set DCV Rel Offset. Sets the relative (null) offset value for the DC voltage function. | Number |
| :SENSe:VOLTage:DC:REFerence:STATe ON | DCV Rel On. Enables the relative (null) offset for the DC voltage function. | None |
| :SENSe:VOLTage:DC:REFerence:STATe OFF | DCV Rel Off. Disables the relative (null) offset for the DC voltage function. | None |
| :SENSe:CURRent:DC:REFerence:ACQuire | Acquire DCI Rel. Acquires the present DC current reading and stores it as the relative (null) offset. | None |
| :SENSe:CURRent:DC:REFerence:STATe ON | DCI Rel On. Enables the relative (null) offset for the DC current function. | None |
| :SENSe:CURRent:DC:REFerence:STATe OFF | DCI Rel Off. Disables the relative (null) offset for the DC current function. | None |
| Command | What it does | Arguments |
|---|---|---|
| :MEASure? | Measure. Makes a measurement using the active function and returns the reading. | None |
| :MEASure:VOLTage:DC? | Measure DCV. Sets the function to DC voltage and returns one measured reading in volts. | None |
| :MEASure:VOLTage:AC? | Measure ACV. Sets the function to AC voltage and returns one measured reading in volts. | None |
| :MEASure:CURRent:DC? | Measure DCI. Sets the function to DC current and returns one measured reading in amps. | None |
| :MEASure:CURRent:AC? | Measure ACI. Sets the function to AC current and returns one measured reading in amps. | None |
| :MEASure:RESistance? | Measure 2W Resistance. Sets the function to 2-wire resistance and returns one reading in ohms. | None |
| :MEASure:FRESistance? | Measure 4W Resistance. Sets the function to 4-wire resistance and returns one reading in ohms. | None |
| :MEASure:FREQuency? | Measure Frequency. Sets the function to frequency and returns one reading in Hz. | None |
| :MEASure:PERiod? | Measure Period. Sets the function to period and returns one reading in seconds. | None |
| :MEASure:CONTinuity? | Measure Continuity. Sets the function to continuity and returns the measured resistance in ohms. | None |
| :MEASure:DIODe? | Measure Diode. Sets the function to diode test and returns the forward voltage in volts. | None |
| :MEASure:TEMPerature? | Measure Temperature. Sets the function to temperature and returns one reading in the configured units. | None |
| Command | What it does | Arguments |
|---|---|---|
| :UNIT:VOLTage:AC DB | Set ACV Unit dB. Sets the AC voltage measurement unit to dB. | None |
| :UNIT:VOLTage:AC DBM | Set ACV Unit dBm. Sets the AC voltage measurement unit to dBm. | None |
| :UNIT:VOLTage:AC V | Set ACV Unit Volt. Sets the AC voltage measurement unit back to volts. | None |
| :UNIT:VOLTage:AC:DB:REFerence <Reference> | Set ACV dB Reference. Sets the dB reference voltage for the AC voltage function (1e-7 to 1000 V). | Number: 1e-7-1000 |
| :UNIT:VOLTage:AC:DBM:IMPedance <Impedance> | Set ACV dBm Reference. Sets the dBm reference impedance for the AC voltage function (1 to 9999 ohms). | Number: 1-9999 |
| :UNIT:TEMPerature <Unit> | Set Temp Unit. Sets the units used for temperature measurements. | Text: C,F,K |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:AZERo:STATe ON | Set DCV AZero On. Enables autozero for the DC voltage function. | None |
| :SYSTem:AZERo:STATe OFF | Set DCV AZero Off. Disables autozero for the DC voltage function. | None |
| :SYSTem:BEEPer:STATe ON | Continuity Beeper On. Enables the audible beeper used during continuity testing. | None |
| :SYSTem:BEEPer:STATe OFF | Continuity Beeper Off. Disables the audible beeper used during continuity testing. | None |
| :SYSTem:ERRor:NEXT? | Read Error. Reads and removes the oldest message from the error queue (0,"No error" if empty). | None |
| Command | What it does | Arguments |
|---|---|---|
| :CALCulate2:FORMat MEAN;:CALCulate2:IMMediate? | Read Buffer Stat Mean. Returns the mean (average) of the readings stored in the default reading buffer. | None |
| :CALCulate2:FORMat MINimum;:CALCulate2:IMMediate? | Read Buffer Stat Min. Returns the minimum reading stored in the default reading buffer. | None |
| :CALCulate2:FORMat MAXimum;:CALCulate2:IMMediate? | Read Buffer Stat Max. Returns the maximum reading stored in the default reading buffer. | None |
| :CALCulate2:FORMat SDEViation;:CALCulate2:IMMediate? | Read Buffer Stat StdDev. Returns the standard deviation of the readings stored in the default reading buffer. | None |
| :CALCulate2:FORMat NONE | Clear Buffer Statistics. Clears the statistical information from the default reading buffer. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SAMPle:COUNt <Count> | Set Sample Count. Sets the number of measurements made when a measurement is requested (1 to 1000000). | Number: 1-1024 |
| :SAMPle:COUNt? | Read Sample Count. Queries the number of measurements made per measurement request. | None |
| Command | What it does | Arguments |
|---|---|---|
| :TRIGger:SOURce <Source> | Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number. | Text: IMMediate,EXTernal,TIMer,MANual,BUS |
| :TRIGger:COUNt <Count> | Trigger Load SimpleLoop. Loads the SimpleLoop trigger model template that makes the specified number of readings. | Number: 1-9999 |
| Command | What it does | Arguments |
|---|---|---|
| :TRACe:CLEar | Clear Buffer. Clears all readings and statistics from the default reading buffer. | None |
| :TRACe:FREE? | Read Buffer Actual. Returns the number of readings currently stored in the default reading buffer. | None |
| Command | What it does | Arguments |
|---|---|---|
| :READ? | Read. Triggers and returns one reading from the active function using the default reading buffer. | None |
| Command | What it does | Arguments |
|---|---|---|
| :FETCh? | Fetch. Returns the latest reading from the buffer without triggering a new measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| :INITiate | Init Trigger Model. Starts the trigger model and begins the configured measurement sequence. | None |
| Command | What it does | Arguments |
|---|---|---|
| :ABORt | Abort Trigger Model. Stops all trigger-model commands and returns the instrument to idle. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear Status. Clears all event registers and the error queue. | None |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Keithley's programming documentation for the 2000 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Keithley's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.
Yes. The Keithley 2000 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 91 SCPI commands for it: 25 queries that read values or state, and 66 settings and actions.
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, :SENSe:FUNCtion "VOLT:DC" and :MEASure:VOLTage:DC?.
:MEASure:VOLTage:DC? (measure dcv). Sets the function to DC voltage and returns one measured reading in volts. The full list of queries is in the command reference on this page, grouped by subsystem.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Keithley 2000 through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.