In TestFlow's instrument library, the Keithley 2001 takes 81 SCPI commands, 22 of them queries, and the Keithley DAQ6510 takes 96 SCPI commands, 26 of them queries. That is 15 more on the DAQ6510. Counting distinct command headers (the command path without its arguments), 41 are accepted by both, 15 exist only on the 2001, and 29 only on the DAQ6510. 73% of the 2001's command headers also exist on the DAQ6510.
Both libraries have commands under SENSe, MEASure, SYSTem, TRIGger, TRACe, READ, FETCh, and INITiate, plus 1 more root. Only the 2001 has UNIT and CALCulate.
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 DMM7510 the same command set as the DAQ6510, so the DAQ6510 column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2001 or Keithley DAQ6510 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 | Keithley DAQ6510 | |
|---|---|---|
| Commands in TestFlow's library | 81 | 96 |
| Queries (read a value or state) | 22 | 26 |
| Settings and actions | 59 | 70 |
| Subsystems | 15 | 13 |
| Distinct command headers | 56 | 70 |
| Headers the other lacks | 15 | 29 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 2001, 2002 | DAQ6510, DMM7510 |
41 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What it does |
|---|---|
| :SENSe:FUNCtion "VOLT:DC" | Func DCV. Selects DC voltage as the active measurement function. |
| :MEASure? | Measure. Makes a measurement using the active function and returns the reading. |
| :SYSTem:ERRor:NEXT? | Read Error. Reads and removes the oldest message from the error queue (0,"No error" if empty). |
| :TRACe:CLEar | Clear Buffer. Clears all readings and statistics from the default reading buffer. |
| :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. |
| :INITiate | Init Trigger Model. Starts the trigger model and begins the configured measurement sequence. |
| :ABORt | Abort Trigger Model. Stops all trigger-model commands and returns the instrument to idle. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| :SENSe:FUNCtion? | Read Function. Queries the currently selected measurement function string. |
| :MEASure:VOLTage:DC? | Measure DCV. Sets the function to DC voltage and returns one measured reading in volts. |
| *RST | Reset. Resets the instrument to its default state. |
15 command headers in the 2001 library have no match in the DAQ6510 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:VOLTage:DC:REFerence:ACQuire | Acquire DCV Rel. Acquires the present DC voltage reading and stores it as the relative (null) offset. |
| :SENSe:VOLTage:DC:REFerence <Offset> | Set DCV Rel Offset. Sets the relative (null) offset value for the DC voltage function. |
| :SENSe:VOLTage:DC:REFerence:STATe ON | DCV Rel On. Enables the relative (null) offset for the DC voltage function. |
| :SENSe:CURRent:DC:REFerence:ACQuire | Acquire DCI Rel. Acquires the present DC current reading and stores it as the relative (null) offset. |
| 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 |
|---|---|
| :TRIGger:COUNt <Count> | Set Sample Count. Sets the number of measurements made when a measurement is requested (1 to 1000000). |
| :TRIGger:COUNt? | Read Sample Count. Queries the number of measurements made per measurement request. |
| :TRIGger:SOURce <Source> | Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number. |
| Command | What it does |
|---|---|
| :CALCulate2:FORMat MEAN ; ... | Read Buffer Stat Mean. Returns the mean (average) of the readings stored in the default reading buffer. |
| Command | What it does |
|---|---|
| :SYSTem:AZERo:STATe ON | Set DCV AZero On. Enables autozero for the DC voltage function. |
| Command | What it does |
|---|---|
| :TRACe:FREE? | Read Buffer Actual. Returns the number of readings currently stored in the default reading buffer. |
29 command headers in the DAQ6510 library have no match in the 2001 library. Below are 15 of them from the 4 largest subsystems; the full list is in the Keithley DAQ6510 command reference.
| Command | What it does |
|---|---|
| :SENSe:CAPacitance:RANGe <Range> | Set Capacitance Range. Sets the capacitance measurement range in farads. |
| :SENSe:VOLTage:DC:INPutimpedance AUTO | DCV Input Impedance Auto On. Sets DC voltage input impedance to AUTO (>10 GOhm on 100 mV/1 V/10 V ranges). |
| :SENSe:VOLTage:DC:AZERo:STATe ON | Set DCV AZero On. Enables autozero for the DC voltage function. |
| :SENSe:VOLTage:AC:DETector:BANDwidth <Bandwidth> | Set ACV Detector BW. Sets the AC voltage detector bandwidth in Hz (3, 30 or 300). |
| Command | What it does |
|---|---|
| :TRACe:ACTual? | Read Buffer Actual. Returns the number of readings currently stored in the default reading buffer. |
| :TRACe:STATistics:AVERage? | Read Buffer Stat Mean. Returns the mean (average) of the readings stored in the default reading buffer. |
| :TRACe:STATistics:MINimum? | Read Buffer Stat Min. Returns the minimum reading stored in the default reading buffer. |
| :TRACe:STATistics:MAXimum? | Read Buffer Stat Max. Returns the maximum reading stored in the default reading buffer. |
| Command | What it does |
|---|---|
| :MEASure:PERiod? | Measure Period. Sets the function to period and returns one reading in seconds. |
| :MEASure:CAPacitance? | Measure Capacitance. Sets the function to capacitance and returns one reading in farads. |
| :MEASure:CONTinuity? | Measure Continuity. Sets the function to continuity and returns the measured resistance in ohms. |
| :MEASure:DIODe? | Measure Diode. Sets the function to diode test and returns the forward voltage in volts. |
| Command | What it does |
|---|---|
| :TRIGger:BLOCk:MDIGitize <BlockNumber> | Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number. |
| :TRIGger:LOAD "SimpleLoop", <Count> | Trigger Load SimpleLoop. Loads the SimpleLoop trigger model template that makes the specified number of readings. |
| :TRIGger:EXTernal:IN:EDGE <Edge> | Set Trigger Ext In Edge. Sets the edge used to detect external input triggers on the rear-panel line. |
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), and the same line runs on each. For the reading, both libraries hold :MEASure:VOLTage:DC? (measure dcv), 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_2001_ADDRESS") # Keithley 2001
b = rm.open_resource("PASTE_DAQ6510_ADDRESS") # Keithley DAQ6510
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(":SENSe:FUNCtion \"VOLT:DC\"")
# The same reading on both: Measure DCV
print(a.query(":MEASure:VOLTage:DC?"))
print(b.query(":MEASure:VOLTage:DC?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2001 or Keithley DAQ6510 and writes the report from the measured results.
In TestFlow's library the 2001 has 81 SCPI commands and the DAQ6510 has 96 SCPI commands. 41 command headers are common to both, 15 are only on the 2001 (mostly SENSe and UNIT), and 29 are only on the DAQ6510 (mostly SENSe and TRACe).
Partly. 41 command headers are accepted by both, including :SENSe:FUNCtion, :MEASure?, and :SYSTem:ERRor:NEXT?. 44 are not, for example :SENSe:VOLTage:DC:REFerence:ACQuire on the 2001 and :SENSe:CAPacitance:RANGe on the DAQ6510, so a script that uses those needs a separate branch for each instrument.
The DAQ6510: 81 commands for the 2001 against 96 for the DAQ6510 in TestFlow's library. Of those, 22 on the 2001 and 26 on the DAQ6510 are queries that read a value or state, and the library splits them into 15 and 13 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.