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.
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.
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 2601B | Keithley 2602B | |
|---|---|---|
| Commands in TestFlow's library | 39 | 69 |
| Queries (read a value or state) | 8 | 14 |
| Settings and actions | 31 | 55 |
| Subsystems | 9 | 10 |
| Distinct command headers | 29 | 52 |
| Headers the other lacks | 0 | 23 |
| Command language | TSP | TSP |
| Operation complete | waitcomplete() | waitcomplete() |
| Error queue | errorqueue.next() | errorqueue.next() |
| Models on this command set | 2601B, 2611B, 2635B | 2602B, 2604B, 2612B, 2614B, 2634B, 2636B |
29 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What it does |
|---|---|
| smua.source.output = smua.OUTPUT_ON | Turn 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_DCVOLTS | Set 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. |
Every command header in TestFlow's 2601B library also exists in the 2602B library. The 2602B is the superset here.
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.
| Command | What it does |
|---|---|
| smub.source.output = smub.OUTPUT_ON | Turn On CHB. Enables the output of SMU channel A (TSP command). |
| smub.source.func = smub.OUTPUT_DCVOLTS | Set 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. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.