Source Meter · SCPI and TSP command comparison

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

In TestFlow's instrument library, the Keithley 2400 takes 54 SCPI commands, 12 of them queries, and the Keithley 2601B takes 39 TSP commands, 8 of them queries. That is 15 more on the 2400. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 42 exist only on the 2400, and 29 only on the 2601B. The 2400 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 2400 has SOURce, SENSe, SYSTem, MEASure, OUTPut, and TRIGger and 4 more. Only the 2601B has smua, errorqueue, localnode, beeper, reset, and status and 1 more.

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

TestFlow's library gives the 2401, 2410, 2420, 2425, 2430, and 2440 the same command set as the 2400, so the 2400 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.

2400 commands
54
2601B commands
39
Shared headers
0
Unique headers
71

Run this on your bench

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

Get started

2400 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 2400Keithley 2601B
Commands in TestFlow's library5439
Queries (read a value or state)128
Settings and actions4231
Subsystems149
Distinct command headers4229
Headers the other lacks4229
Command languageSCPITSP
Operation complete*OPC?waitcomplete()
Error queueSYSTem:ERRor?errorqueue.next()
Models on this command set2400, 2401, 2410, 2420, 2425, 2430, 24402601B, 2611B, 2635B

Commands both accept

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

Only on the Keithley 2400

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

SOURce (13 only on the 2400)

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:LEVel <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.
:SOURce:CURRent:LEVel <Amp>Set Current Source. Sets the output current level in amps when in current source mode.

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

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.

SENSe (7 only on the 2400)

CommandWhat it does
:SENSe:FUNCtion "VOLTage"Set Sense Function Voltage. Selects voltage as the measurement (sense) function.
:SENSe:VOLTage:PROTection <Voltage>Set Voltage Compliance. Sets the voltage compliance (limit) in volts.
:SENSe:CURRent:PROTection <Amp>Set Current Compliance. Sets the current compliance (limit) in amps.
:SENSe:VOLTage:RANGe <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.

MEASure (4 only on the 2400)

CommandWhat it does
:MEASure?Measure All. Triggers and returns the measured voltage, current, resistance and timestamp.
: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.

SYSTem (3 only on the 2400)

CommandWhat it does
:SYSTem:RSENse ONSet Four Wire On. Enables 4-wire (remote sense) measurement.
:SYSTem:AZERo ONSet Auto Zero On. Enables autozero.
:SYSTem:ERRor?Read Error. Reads the first message from the error queue.

OUTPut (2 only on the 2400)

CommandWhat it does
:OUTPut ONTurn On. Enables the source output.
:OUTPut?Read Output State. Reads whether the output is ON or OFF.

Only on the Keithley 2601B

29 command headers in the 2601B library have no match in the 2400 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 2400 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 2400 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_2400_ADDRESS")  # Keithley 2400
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 2400 or Keithley 2601B and writes the report from the measured results.

Get started

Frequently asked questions

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

In TestFlow's library the 2400 has 54 SCPI commands and the 2601B has 39 TSP commands. 0 command headers are common to both, 42 are only on the 2400 (mostly SOURce and IEEE 488.2 common (*)), and 29 are only on the 2601B (mostly smua and beeper).

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

Not directly. The 2400 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 2400 or the 2601B?

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

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

The 2400 library synchronises with *OPC? and the 2601B library with waitcomplete(). The 2400 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.