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.
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.
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 2450 | Keithley 2601B | |
|---|---|---|
| Commands in TestFlow's library | 49 | 39 |
| Queries (read a value or state) | 12 | 8 |
| Settings and actions | 37 | 31 |
| Subsystems | 13 | 9 |
| Distinct command headers | 36 | 29 |
| Headers the other lacks | 36 | 29 |
| Command language | SCPI | TSP |
| Operation complete | *OPC? | waitcomplete() |
| Error queue | SYSTem:ERRor? | errorqueue.next() |
| Models on this command set | 2450, 2460, 2470 | 2601B, 2611B, 2635B |
None. No command header in TestFlow's 2450 library matches one in its 2601B library: the 2450 speaks SCPI and the 2601B speaks TSP.
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.
| Command | What 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. |
| Command | What 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 ON | Voltage Sense Autorange On. Enables voltage measurement autorange. |
| Command | What it does |
|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :OUTPut ON | Turn On. Enables the source output. |
| :OUTPut? | Read Output State. Reads whether the output is ON or OFF. |
| :OUTPut:SMODe HIMPedance | Set Output Off Mode Himp. Sets the output-off state to high impedance. |
| Command | What it does |
|---|---|
| :ABORt | Abort. Aborts the current operation and returns to idle. |
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.
| Command | What it does |
|---|---|
| smua.source.output = smua.OUTPUT_ON | Turn On. Enables the output of SMU channel A (TSP command). |
| 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. |
| Command | What it does |
|---|---|
| beeper.beep(<Duration>, <Frequency>) | Beep. Sounds the beeper for the given duration and frequency. |
| Command | What it does |
|---|---|
| print(errorqueue.next()) | Read Error. Reads the next message from the error queue. |
| Command | What it does |
|---|---|
| print(localnode.description) | Identify. Returns the instrument identification string. |
| Command | What it does |
|---|---|
| reset() | Reset. Resets the entire instrument to its default state. |
| Command | What it does |
|---|---|
| status.reset() | Clear Status. Clears all status registers and the error queue. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.