In TestFlow's instrument library, the Keithley 2000 takes 91 SCPI commands, 25 of them queries, and the Rigol DM3068 takes 102 SCPI commands, 35 of them queries. That is 11 more on the DM3068. Counting distinct command headers (the command path without its arguments), 19 are accepted by both, 43 exist only on the 2000, and 70 only on the DM3068. 31% of the 2000's command headers also exist on the DM3068.
Both libraries have commands under MEASure, SYSTem, CALCulate, and TRIGger. Only the 2000 has SENSe, UNIT, SAMPle, TRACe, READ, and FETCh and 2 more. Only the DM3068 has FUNCtion and RATE.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2000 or Rigol DM3068 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 2000 | Rigol DM3068 | |
|---|---|---|
| Commands in TestFlow's library | 91 | 102 |
| Queries (read a value or state) | 25 | 35 |
| Settings and actions | 66 | 67 |
| Subsystems | 16 | 10 |
| Distinct command headers | 62 | 89 |
| Headers the other lacks | 43 | 70 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 2000 | DM3068 |
19 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What it does |
|---|---|
| :MEASure? | Measure. Makes a measurement using the active function and returns the reading. |
| :SYSTem:BEEPer:STATe ON | Continuity Beeper On. Enables the audible beeper used during continuity testing. |
| :TRIGger:SOURce <Source> | Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| :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. |
| :MEASure:VOLTage:AC? | Measure ACV. Sets the function to AC voltage and returns one measured reading in volts. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| :MEASure:CURRent:DC? | Measure DCI. Sets the function to DC current and returns one measured reading in amps. |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
| :MEASure:CURRent:AC? | Measure ACI. Sets the function to AC current and returns one measured reading in amps. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
43 command headers in the 2000 library have no match in the DM3068 library. Below are 15 of them from the 6 largest subsystems; the full list is in the Keithley 2000 command reference.
| Command | What it does |
|---|---|
| :SENSe:FUNCtion "VOLT:DC" | Func DCV. Selects DC voltage as the active measurement function. |
| :SENSe:FUNCtion? | Read Function. Queries the currently selected measurement function string. |
| :SENSe:VOLTage:DC:RANGe <Range> | Set DCV Range. Sets the DC voltage measurement range in volts. |
| :SENSe:VOLTage:AC:RANGe <Range> | Set ACV Range. Sets the AC voltage measurement range in volts. |
| 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 |
|---|---|
| :SAMPle:COUNt <Count> | Set Sample Count. Sets the number of measurements made when a measurement is requested (1 to 1000000). |
| :SAMPle:COUNt? | Read Sample Count. Queries the number of measurements made per measurement request. |
| 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. |
70 command headers in the DM3068 library have no match in the 2000 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rigol DM3068 command reference.
| Command | What it does |
|---|---|
| :MEASure:CAPacitance? | Measure Capacitance. Returns the measured capacitance value in farads. |
| :MEASure <Type> | Set Measure Type. Sets the measurement type to Auto (auto-range) or Manual. |
| :MEASure:VOLTage:DC <Range> | Set DCV Range. Sets the DC voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=1000V (switches to Manual). |
| :MEASure:VOLTage:AC <Range> | Set ACV Range. Sets the AC voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=750V. |
| Command | What it does |
|---|---|
| :CALCulate:FUNCtion <Function> | Set Math Function. Selects the math operation to apply to the measurement. |
| :CALCulate:STATistic:MIN? | Stat Min. Returns the minimum of the current statistics (MIN operation enabled). |
| :CALCulate:STATistic:MAX? | Stat Max. Returns the maximum of the current statistics (MAX operation enabled). |
| :CALCulate:STATistic:AVERage? | Stat Average. Returns the average of the current statistics (AVERAGE operation enabled). |
| Command | What it does |
|---|---|
| :FUNCtion:VOLTage:DC | Func DCV. Selects DC voltage as the active measurement function. |
| :FUNCtion:VOLTage:AC | Func ACV. Selects AC voltage as the active measurement function. |
| :FUNCtion:CURRent:DC | Func DCI. Selects DC current as the active measurement function. |
| :FUNCtion:CURRent:AC | Func ACI. Selects AC current as the active measurement function. |
| Command | What it does |
|---|---|
| :SYSTem:BEEPer | Beep. Issues a single beep (beeper must be on). |
| :SYSTem:LANGuage <Language> | Set Language. Sets the system display language. |
| :SYSTem:DISPlay:BRIGht <Value> | Set Display Brightness. Sets the screen brightness (0 to 32). |
| :SYSTem:DISPlay:CONTrast <Value> | Set Display Contrast. Sets the screen contrast (0 to 32). |
| Command | What it does |
|---|---|
| :RATE:VOLTage:DC <Rate> | Set DCV Rate. Sets DC voltage measuring rate: F=Fast, M=Medium, S=Slow. |
| :RATE:VOLTage:AC <Rate> | Set ACV Rate. Sets AC voltage measuring rate: Fast, Medium or Slow. |
| :RATE:CURRent:DC <Rate> | Set DCI Rate. Sets DC current measuring rate: Fast, Medium or Slow. |
| :RATE:CURRent:AC <Rate> | Set ACI Rate. Sets AC current measuring rate: Fast, Medium or Slow. |
| Command | What it does |
|---|---|
| :TRIGger:AUTO:INTErval <Seconds> | Set Auto Trig Interval. Sets the auto-trigger interval in ms (8-2000 depending on rate). |
| :TRIGger:AUTO:HOLD ON | Auto Trig Hold On. Enables the reading-hold function under auto trigger. |
| :TRIGger:SINGle <Count> | Set Single Trig Count. Sets the number of samples per single trigger (1 to 2000). |
| :TRIGger:SINGle:TRIGgered | Single Trigger. Issues one manual single 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 :SYSTem:BEEPer:STATe (continuity beeper on), 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_2000_ADDRESS") # Keithley 2000
b = rm.open_resource("PASTE_DM3068_ADDRESS") # Rigol DM3068
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Continuity Beeper On
a.write(":SYSTem:BEEPer:STATe ON")
b.write(":SYSTem:BEEPer:STATe ON")
# 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 2000 or Rigol DM3068 and writes the report from the measured results.
In TestFlow's library the 2000 has 91 SCPI commands and the DM3068 has 102 SCPI commands. 19 command headers are common to both, 43 are only on the 2000 (mostly SENSe and UNIT), and 70 are only on the DM3068 (mostly MEASure and CALCulate).
Partly. 19 command headers are accepted by both, including :MEASure?, :SYSTem:BEEPer:STATe, and :TRIGger:SOURce. 113 are not, for example :SENSe:FUNCtion on the 2000 and :MEASure:CAPacitance? on the DM3068, so a script that uses those needs a separate branch for each instrument.
The DM3068: 91 commands for the 2000 against 102 for the DM3068 in TestFlow's library. Of those, 25 on the 2000 and 35 on the DM3068 are queries that read a value or state, and the library splits them into 16 and 10 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.