Source Meter · SCPI and TSP command comparison

Keithley 2450 vs 2601B: SCPI and TSP commands and remote control compared

In TestFlow's instrument library, the Keithley 2450 takes 49 SCPI commands, 12 of them queries, and the Keithley 2601B takes 39 TSP commands, 8 of them queries. That is 10 more on the 2450. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 36 exist only on the 2450, and 29 only on the 2601B. The 2450 is programmed in SCPI and the 2601B in TSP, so a script written for one does not run on the other without translating each command.

Only the 2450 has SENSe, SOURce, OUTPut, MEASure, READ, and FETCh and 3 more. Only the 2601B has smua, errorqueue, localnode, beeper, reset, and status and 1 more.

The 2450 library synchronises with *OPC? and the 2601B library with waitcomplete(). The 2450 library reads errors with SYSTem:ERRor? and the 2601B library with errorqueue.next().

TestFlow's library gives the 2460 and 2470 the same command set as the 2450, so the 2450 column applies to them too. TestFlow's library gives the 2611B and 2635B the same command set as the 2601B, so the 2601B column applies to them too.

2450 commands
49
2601B commands
39
Shared headers
0
Unique headers
65

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2450 or Keithley 2601B and writes the report from the measured results.

Get started

2450 vs 2601B at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Keithley 2450Keithley 2601B
Commands in TestFlow's library4939
Queries (read a value or state)128
Settings and actions3731
Subsystems139
Distinct command headers3629
Headers the other lacks3629
Command languageSCPITSP
Operation complete*OPC?waitcomplete()
Error queueSYSTem:ERRor?errorqueue.next()
Models on this command set2450, 2460, 24702601B, 2611B, 2635B

Commands both accept

None. No command header in TestFlow's 2450 library matches one in its 2601B library: the 2450 speaks SCPI and the 2601B speaks TSP.

Only on the Keithley 2450

36 command headers in the 2450 library have no match in the 2601B library. Below are 19 of them from the 6 largest subsystems; the full list is in the Keithley 2450 command reference.

SOURce (10 only on the 2450)

CommandWhat it does
:SOURce:FUNCtion <Function>Set Source Function. Sets the source function to voltage or current mode.
:SOURce:FUNCtion?Read Source Function. Reads the present source function.
:SOURce:VOLTage <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.
:SOURce:CURRent <Amp>Set Current Source. Sets the output current level in amps when in current source mode.

SENSe (8 only on the 2450)

CommandWhat it does
:SENSe:FUNCtion "VOLTage"Set Sense Function Voltage. Selects voltage as the measurement function.
:SENSe:VOLTage:RANGe <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.
:SENSe:CURRent:RANGe <Range>Set Current Sense Range. Sets the current measurement range in amps.
:SENSe:VOLTage:RANGe:AUTO ONVoltage Sense Autorange On. Enables voltage measurement autorange.

IEEE 488.2 common (*) (7 only on the 2450)

CommandWhat it does
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all event registers and the error queue.
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.

MEASure (3 only on the 2450)

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

OUTPut (3 only on the 2450)

CommandWhat it does
:OUTPut ONTurn On. Enables the source output.
:OUTPut?Read Output State. Reads whether the output is ON or OFF.
:OUTPut:SMODe HIMPedanceSet Output Off Mode Himp. Sets the output-off state to high impedance.

ABORt (1 only on the 2450)

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

Only on the Keithley 2601B

29 command headers in the 2601B library have no match in the 2450 library. Below are 9 of them from the 6 largest subsystems; the full list is in the Keithley 2601B command reference.

smua (23 only on the 2601B)

CommandWhat it does
smua.source.output = smua.OUTPUT_ONTurn On. Enables the output of SMU channel A (TSP command).
smua.source.func = smua.OUTPUT_DCVOLTSSet Source Function Voltage. Sets the source function of channel A to DC voltage.
smua.source.levelv = <Voltage>Set Voltage Source. Sets the output voltage level in volts on channel A.
smua.source.leveli = <Amp>Set Current Source. Sets the output current level in amps on channel A.

beeper (1 only on the 2601B)

CommandWhat it does
beeper.beep(<Duration>, <Frequency>)Beep. Sounds the beeper for the given duration and frequency.

errorqueue (1 only on the 2601B)

CommandWhat it does
print(errorqueue.next())Read Error. Reads the next message from the error queue.

localnode (1 only on the 2601B)

CommandWhat it does
print(localnode.description)Identify. Returns the instrument identification string.

reset (1 only on the 2601B)

CommandWhat it does
reset()Reset. Resets the entire instrument to its default state.

status (1 only on the 2601B)

CommandWhat it does
status.reset()Clear Status. Clears all status registers and the error queue.

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, the two libraries have no common command with a worked example on both, so each instrument uses its own: :OUTPut ON on the 2450 and smua.source.output = smua.OUTPUT_ON on the 2601B. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :MEASure:VOLTage? on the 2450 and print(smua.measure.v()) on the 2601B. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_2450_ADDRESS")  # Keithley 2450
b = rm.open_resource("PASTE_2601B_ADDRESS")  # Keithley 2601B
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# No shared setting with an example on both, so each uses its own command
a.write(":OUTPut ON")  # Turn On
b.write("smua.source.output = smua.OUTPUT_ON")  # Turn On

# No shared reading with an example on both, so each uses its own command
print(a.query(":MEASure:VOLTage?"))  # Measure Voltage
print(b.query("print(smua.measure.v())"))  # Measure Voltage

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2450 or Keithley 2601B and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keithley 2450 and the Keithley 2601B for remote control?

In TestFlow's library the 2450 has 49 SCPI commands and the 2601B has 39 TSP commands. 0 command headers are common to both, 36 are only on the 2450 (mostly SOURce and SENSe), and 29 are only on the 2601B (mostly smua and beeper).

Can I use the same code for the Keithley 2450 and the Keithley 2601B?

Not directly. The 2450 uses SCPI and the 2601B uses TSP, so each command has to be rewritten for the other instrument. PyVISA opens both the same way, and both answer *IDN?, but the commands that set and read values differ.

Which has more remote commands, the 2450 or the 2601B?

The 2450: 49 commands for the 2450 against 39 for the 2601B in TestFlow's library. Of those, 12 on the 2450 and 8 on the 2601B are queries that read a value or state, and the library splits them into 13 and 9 subsystems.

How do the 2450 and 2601B signal operation complete and report errors?

The 2450 library synchronises with *OPC? and the 2601B library with waitcomplete(). The 2450 library reads errors with SYSTem:ERRor? and the 2601B library with errorqueue.next(). Each command named here is listed in the tables on this page and on each instrument's command reference.

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.