In TestFlow's instrument library, the Keithley 2001 takes 81 SCPI commands, 22 of them queries, and the Keysight 34460A takes 50 SCPI commands, 18 of them queries. That is 31 more on the 2001. Counting distinct command headers (the command path without its arguments), 22 are accepted by both, 34 exist only on the 2001, and 24 only on the 34460A. 39% of the 2001's command headers also exist on the 34460A.
Both libraries have commands under SENSe, MEASure, SYSTem, TRIGger, READ, FETCh, and INITiate. Only the 2001 has UNIT, CALCulate, TRACe, and ABORt. Only the 34460A has CONF, DISP, and SAMP.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the 2002 the same command set as the 2001, so the 2001 column applies to it too. TestFlow's library gives the 34470A the same command set as the 34460A, so the 34460A column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2001 or Keysight 34460A 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 2001 | Keysight 34460A | |
|---|---|---|
| Commands in TestFlow's library | 81 | 50 |
| Queries (read a value or state) | 22 | 18 |
| Settings and actions | 59 | 32 |
| Subsystems | 15 | 14 |
| Distinct command headers | 56 | 46 |
| Headers the other lacks | 34 | 24 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 2001, 2002 | 34460A, 34470A |
22 command headers are in both libraries. Here are 12, taken across subsystems. Where the 34460A library writes the command differently, its form is shown under the 2001's.
| Command | What it does |
|---|---|
| :SENSe:FUNCtion "VOLT:DC"34460A: :SENS:FUNC "<Sense>" | Func DCV. Selects DC voltage as the active measurement function. |
| :MEASure:VOLTage:DC?34460A: :MEAS:VOLT:DC? <Range>,<Resolution> | Measure DCV. Sets the function to DC voltage and returns one measured reading in volts. |
| :TRIGger:COUNt <Count>34460A: :TRIG:COUN <Trigger_Count> | Set Sample Count. Sets the number of measurements made when a measurement is requested (1 to 1000000). |
| :READ? | Read. Triggers and returns one reading from the active function using the default reading buffer. |
| :FETCh? | Fetch. Returns the latest reading from the buffer without triggering a new measurement. |
| :INITiate34460A: :INIT | Init Trigger Model. Starts the trigger model and begins the configured measurement sequence. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| :SENSe:VOLTage:DC:RANGe <Range>34460A: :SENS:VOLT:DC:RANG <Range> | Set DCV Range. Sets the DC voltage measurement range in volts. |
| :MEASure:VOLTage:AC?34460A: :MEAS:VOLT:AC? <Range>,<Resolution> | Measure ACV. Sets the function to AC voltage and returns one measured reading in volts. |
| :TRIGger:SOURce <Source>34460A: :TRIG:SOUR <Source> | Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number. |
| *RST | Reset. Resets the instrument to its default state. |
| :SENSe:VOLTage:DC:RANGe:AUTO ON34460A: :SENS:VOLT:DC:RANG:AUTO ON | DCV Autorange On. Enables autorange for the DC voltage function. |
34 command headers in the 2001 library have no match in the 34460A library. Below are 14 of them from the 6 largest subsystems; the full list is in the Keithley 2001 command reference.
| Command | What it does |
|---|---|
| :SENSe:FUNCtion? | Read Function. Queries the currently selected measurement function string. |
| :SENSe:VOLTage:AC:RANGe <Range> | Set ACV Range. Sets the AC voltage measurement range in volts. |
| :SENSe:CURRent:DC:RANGe <Range> | Set DCI Range. Sets the DC current measurement range in amps. |
| :SENSe:CURRent:AC:RANGe <Range> | Set ACI Range. Sets the AC current measurement range in amps. |
| Command | What it does |
|---|---|
| :UNIT:VOLTage:AC DB | Set ACV Unit dB. Sets the AC voltage measurement unit to dB. |
| :UNIT:VOLTage:AC:DB:REFerence <Reference> | Set ACV dB Reference. Sets the dB reference voltage for the AC voltage function (1e-7 to 1000 V). |
| :UNIT:VOLTage:AC:DBM:IMPedance <Impedance> | Set ACV dBm Reference. Sets the dBm reference impedance for the AC voltage function (1 to 9999 ohms). |
| :UNIT:TEMPerature <Unit> | Set Temp Unit. Sets the units used for temperature measurements. |
| Command | What it does |
|---|---|
| :SYSTem:AZERo:STATe ON | Set DCV AZero On. Enables autozero for the DC voltage function. |
| :SYSTem:ERRor:NEXT? | Read Error. Reads and removes the oldest message from the error queue (0,"No error" if empty). |
| Command | What it does |
|---|---|
| :TRACe:CLEar | Clear Buffer. Clears all readings and statistics from the default reading buffer. |
| :TRACe:FREE? | Read Buffer Actual. Returns the number of readings currently stored in the default reading buffer. |
| Command | What it does |
|---|---|
| :ABORt | Abort Trigger Model. Stops all trigger-model commands and returns the instrument to idle. |
| Command | What it does |
|---|---|
| :CALCulate2:FORMat MEAN ; ... | Read Buffer Stat Mean. Returns the mean (average) of the readings stored in the default reading buffer. |
24 command headers in the 34460A library have no match in the 2001 library. Below are 17 of them from the 6 largest subsystems; the full list is in the Keysight 34460A command reference.
| Command | What it does |
|---|---|
| :CONF:VOLT:DC <Range>,<Resolution> | Configure Voltage DC. Configures DC voltage measurement. |
| :CONF:VOLT:AC <Range>,<Resolution> | Configure Voltage AC. Configures AC voltage measurement. |
| :CONF:CURR:DC <Range>,<Resolution> | Configure Current DC. Configures DC current measurement. |
| :CONF:CURR:AC <Range>,<Resolution> | Configure Current AC. Configures AC current measurement. |
| Command | What it does |
|---|---|
| *ESE <Mask> | Standard Event Enable. Sets the Standard Event Status Enable register mask. |
| *ESE? | Standard Event Enable Query. Queries the Standard Event Status Enable register. |
| *ESR? | Event Status Register Query. Queries the Standard Event Status Register. |
| *OPC | Operation Complete. Sets the Operation Complete flag when pending operations finish. |
| Command | What it does |
|---|---|
| :DISP <ON_OFF> | Display OnOff. Enables or disables the display. |
| :DISP:TEXT "<Message>" | Display Text. Displays a custom message on the screen. |
| :DISP:TEXT:CLE | Display Text Clear. Clears the displayed message. |
| Command | What it does |
|---|---|
| :SENS:VOLT:NPLC <NPLC> | Volt NPLC. Sets the integration time in number of power line cycles. |
| :SENS:VOLT:DC:ZERO:AUTO <ON_OFF> | Auto zero. Enables or disables DC voltage autozero (ON, OFF, or ONCE). |
| :SENS:<Function>:RES <Resolution> | Resolution. Sets the resolution for the selected measurement function. |
| Command | What it does |
|---|---|
| :SYST:ERR? | System Error Query. Queries the next system error in the queue. |
| :SYST:LOC | System Local. Sets the instrument to local (front panel) control. |
| Command | What it does |
|---|---|
| :SAMP:COUN <Count> | Sample Count. Sets the number of samples per trigger. |
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 :SENSe:FUNCtion (func dcv); the 34460A library writes it as :SENS:FUNC "VOLT:DC". For the reading, both libraries hold :MEASure:TEMPerature? (measure temperature); the 34460A library writes it as :MEAS:TEMP? FRTD,85. 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_2001_ADDRESS") # Keithley 2001
b = rm.open_resource("PASTE_34460A_ADDRESS") # Keysight 34460A
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Func DCV
a.write(":SENSe:FUNCtion \"VOLT:DC\"")
b.write(":SENS:FUNC \"VOLT:DC\"")
# The same reading on both: Measure Temperature
print(a.query(":MEASure:TEMPerature?"))
print(b.query(":MEAS:TEMP? FRTD,85"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2001 or Keysight 34460A and writes the report from the measured results.
In TestFlow's library the 2001 has 81 SCPI commands and the 34460A has 50 SCPI commands. 22 command headers are common to both, 34 are only on the 2001 (mostly SENSe and UNIT), and 24 are only on the 34460A (mostly CONF and IEEE 488.2 common (*)).
Partly. 22 command headers are accepted by both, including :SENSe:FUNCtion, :MEASure:VOLTage:DC?, and :TRIGger:COUNt. 58 are not, for example :SENSe:FUNCtion? on the 2001 and :CONF:VOLT:DC on the 34460A, so a script that uses those needs a separate branch for each instrument.
The 2001: 81 commands for the 2001 against 50 for the 34460A in TestFlow's library. Of those, 22 on the 2001 and 18 on the 34460A are queries that read a value or state, and the library splits them into 15 and 14 subsystems.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. 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.