Source Meter · SCPI command reference

Keithley 2450, 2460, and 2470 SCPI commands

The Keithley 2450, 2460, and 2470 source meter is controlled remotely with SCPI commands. TestFlow's instrument library holds 49 commands for it, 12 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 2450 on a real bench.

Commands
49
Queries
12
Subsystems
13
Models covered
3

Control the Keithley 2450 from Python

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 2450's VISA address

# Paste the address of your Keithley 2450 (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(":OUTPut ON")  # Turn On
print(inst.query(":MEASure:VOLTage?"))  # Measure Voltage

inst.close()

Run a 2450 test without writing code

Describe the test in a sentence, for example “turn on on the 2450, then measure voltage 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.

Get started

SCPI command reference

49 commands in 13 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The 2450, 2460, and 2470 share this command set in TestFlow's library.

Sense (SENSe) (13)

CommandWhat it doesArguments
:SENSe:FUNCtion "VOLTage"Set Sense Function Voltage. Selects voltage as the measurement function.None
:SENSe:FUNCtion "CURRent"Set Sense Function Current. Selects current as the measurement function.None
:SENSe:FUNCtion "RESistance"Set Sense Function Resistance. Selects resistance as the measurement function.None
:SENSe:VOLTage:RANGe <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.Number
:SENSe:CURRent:RANGe <Range>Set Current Sense Range. Sets the current measurement range in amps.Number
:SENSe:VOLTage:RANGe:AUTO ONVoltage Sense Autorange On. Enables voltage measurement autorange.None
:SENSe:VOLTage:RANGe:AUTO OFFVoltage Sense Autorange Off. Disables voltage measurement autorange.None
:SENSe:CURRent:NPLCycles <Cycles>Set NPLC. Sets the integration time in power line cycles for current measurement.Number
:SENSe:CURRent:RSENse ONSet Four Wire On. Enables 4-wire (remote sense) measurement.None
:SENSe:CURRent:RSENse OFFSet Four Wire Off. Disables 4-wire sense (uses 2-wire local sense).None
:SENSe:COUNt <Count>Set Measure Count. Sets the number of measurements made per trigger.Number
:SENSe:AZERo ONSet Auto Zero On. Enables autozero.None
:SENSe:AZERo OFFSet Auto Zero Off. Disables autozero.None

Source (SOURce) (11)

CommandWhat it doesArguments
:SOURce:FUNCtion <Function>Set Source Function. Sets the source function to voltage or current mode.Text: VOLTage,CURRent
:SOURce:FUNCtion?Read Source Function. Reads the present source function.None
:SOURce:VOLTage <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.Number
:SOURce:CURRent <Amp>Set Current Source. Sets the output current level in amps when in current source mode.Number
:SOURce:VOLTage:RANGe <Range>Set Source Voltage Range. Sets the source voltage range in volts.Number
:SOURce:CURRent:RANGe <Range>Set Source Current Range. Sets the source current range in amps.Number
:SOURce:VOLTage:RANGe:AUTO ONSource Voltage Autorange On. Enables source voltage autorange.None
:SOURce:VOLTage:RANGe:AUTO OFFSource Voltage Autorange Off. Disables source voltage autorange.None
:SOURce:VOLTage:ILIMit:LEVel <Voltage>Set Voltage Limit. Sets the voltage limit (compliance) when sourcing current.Number
:SOURce:CURRent:VLIMit:LEVel <Amp>Set Current Limit. Sets the current limit (compliance) when sourcing voltage.Number
:SOURce:VOLTage:ILIMit:LEVel:TRIPped?Read Source Limit Tripped. Reads whether the source limit has been tripped.None

Output (OUTPut) (7)

CommandWhat it doesArguments
:OUTPut ONTurn On. Enables the source output.None
:OUTPut OFFTurn Off. Disables the source output.None
:OUTPut?Read Output State. Reads whether the output is ON or OFF.None
:OUTPut:SMODe HIMPedanceSet Output Off Mode Himp. Sets the output-off state to high impedance.None
:OUTPut:SMODe NORMalSet Output Off Mode Normal. Sets the output-off state to normal.None
:OUTPut:SMODe ZEROSet Output Off Mode Zero. Sets the output-off state to zero.None
:OUTPut:SMODe GUARdSet Output Off Mode Guard. Sets the output-off state to guard.None

Measurement (MEASure) (3)

CommandWhat it doesArguments
:MEASure:VOLTage?Measure Voltage. Triggers and returns the measured voltage in volts.None
:MEASure:CURRent?Measure Current. Triggers and returns the measured current in amps.None
:MEASure:RESistance?Measure Resistance. Triggers and returns the measured resistance in ohms.None

Read (READ) (1)

CommandWhat it doesArguments
:READ?Read Value. Triggers and returns one measurement of the active sense function.None

Fetch (FETCh) (1)

CommandWhat it doesArguments
:FETCh?Fetch Value. Returns the last measurement without re-triggering.None

Initiate (INITiate) (1)

CommandWhat it doesArguments
:INITiateInitiate. Places the instrument in the wait-for-trigger state.None

Abort (1)

CommandWhat it doesArguments
:ABORtAbort. Aborts the current operation and returns to idle.None

System (SYSTem) (1)

CommandWhat it doesArguments
:SYSTem:ERRor?Read Error. Reads the first message from the error queue.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear 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
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Keithley's programming documentation for the 2450, 2460, and 2470 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 June 18, 2026.

Frequently asked questions

Does the Keithley 2450 support SCPI remote control?

Yes. The Keithley 2450 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 49 SCPI commands for it: 12 queries that read values or state, and 37 settings and actions.

How do I control the Keithley 2450 from Python?

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?, :OUTPut ON and :MEASure:VOLTage?.

Which command reads a value from the Keithley 2450?

:MEASure:VOLTage? (measure voltage). Triggers and returns the measured voltage in volts. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Keithley 2450 without writing code?

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 2450 through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.