Source Meter · TSP command comparison

Keithley 2601B vs 2602B: TSP commands and remote control compared

In TestFlow's instrument library, the Keithley 2601B takes 39 TSP commands, 8 of them queries, and the Keithley 2602B takes 69 TSP commands, 14 of them queries. That is 30 more on the 2602B. Counting distinct command headers (the command path without its arguments), 29 are accepted by both, 0 exist only on the 2601B, and 23 only on the 2602B. 100% of the 2601B's command headers also exist on the 2602B.

Both libraries have commands under smua, errorqueue, localnode, beeper, reset, status, and waitcomplete. Only the 2602B has smub.

Both libraries synchronise with waitcomplete(). Both libraries read errors with errorqueue.next().

TestFlow's library gives the 2611B and 2635B the same command set as the 2601B, so the 2601B column applies to them too. TestFlow's library gives the 2604B, 2612B, 2614B, 2634B, and 2636B the same command set as the 2602B, so the 2602B column applies to them too.

2601B commands
39
2602B commands
69
Shared headers
29
Unique headers
23

Run this on your bench

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

Get started

2601B vs 2602B 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 2601BKeithley 2602B
Commands in TestFlow's library3969
Queries (read a value or state)814
Settings and actions3155
Subsystems910
Distinct command headers2952
Headers the other lacks023
Command languageTSPTSP
Operation completewaitcomplete()waitcomplete()
Error queueerrorqueue.next()errorqueue.next()
Models on this command set2601B, 2611B, 2635B2602B, 2604B, 2612B, 2614B, 2634B, 2636B

Commands both accept

29 command headers are in both libraries. Here are 12, taken across subsystems.

CommandWhat it does
smua.source.output = smua.OUTPUT_ONTurn On. Enables the output of SMU channel A (TSP command).
print(errorqueue.next())Read Error. Reads the next message from the error queue.
print(localnode.description)Identify. Returns the instrument identification string.
beeper.beep(<Duration>, <Frequency>)Beep. Sounds the beeper for the given duration and frequency.
reset()Reset. Resets the entire instrument to its default state.
status.reset()Clear Status. Clears all status registers and the error queue.
waitcomplete()Wait To Continue. Waits until all overlapped operations are complete before continuing.
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.
smua.source.rangev = <Range>Set Source Voltage Range. Sets the source voltage range in volts on channel A.
smua.source.rangei = <Range>Set Source Current Range. Sets the source current range in amps on channel A.

Only on the Keithley 2601B

Every command header in TestFlow's 2601B library also exists in the 2602B library. The 2602B is the superset here.

Only on the Keithley 2602B

23 command headers in the 2602B library have no match in the 2601B library. Below are 4 of them from the 1 largest subsystem; the full list is in the Keithley 2602B command reference.

smub (23 only on the 2602B)

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

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, both libraries hold smua.source.output (turn on), and the same line runs on each. For the reading, both libraries hold print(smua.measure.v()) (measure voltage), and the same line runs on each. 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_2601B_ADDRESS")  # Keithley 2601B
b = rm.open_resource("PASTE_2602B_ADDRESS")  # Keithley 2602B
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Turn On
a.write("smua.source.output = smua.OUTPUT_ON")
b.write("smua.source.output = smua.OUTPUT_ON")

# The same reading on both: Measure Voltage
print(a.query("print(smua.measure.v())"))
print(b.query("print(smua.measure.v())"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

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

In TestFlow's library the 2601B has 39 TSP commands and the 2602B has 69 TSP commands. 29 command headers are common to both, 0 are only on the 2601B, and 23 are only on the 2602B (mostly smub).

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

Partly. 29 command headers are accepted by both, including smua.source.output, print(errorqueue.next()), and print(localnode.description). 23 are not, so a script that uses those needs a separate branch for each instrument.

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

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

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

Both libraries synchronise with waitcomplete(). Both libraries read errors 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.