In TestFlow's instrument library, the Fluke 8846A takes 118 SCPI commands, 35 of them queries, and the Keysight 34401A takes 94 SCPI commands, 27 of them queries. That is 24 more on the 8846A. Counting distinct command headers (the command path without its arguments), 57 are accepted by both, 33 exist only on the 8846A, and 22 only on the 34401A. 63% of the 8846A's command headers also exist on the 34401A.
Both libraries have commands under CALCulate, MEASure, CONFigure, TRIGger, SYSTem, DISPlay, SAMPle, and READ, plus 3 more roots. Only the 8846A has VOLTage, FUNCtion, CURRent, RESistance, and FRESistance. Only the 34401A has SENSe and INPut.
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 Fluke 8846A or Keysight 34401A 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.
| Fluke 8846A | Keysight 34401A | |
|---|---|---|
| Commands in TestFlow's library | 118 | 94 |
| Queries (read a value or state) | 35 | 27 |
| Settings and actions | 83 | 67 |
| Subsystems | 20 | 17 |
| Distinct command headers | 90 | 79 |
| Headers the other lacks | 33 | 22 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 8846A | 34401A |
57 command headers are in both libraries. Here are 12, taken across subsystems. Where the 34401A library writes the command differently, its form is shown under the 8846A's.
| Command | What it does |
|---|---|
| CALCulate:FUNCtion <Function> | Set Math Function. Selects the math operation applied to readings. |
| MEASure:VOLTage:DC?34401A: MEASure:VOLTage:DC? <Range>,<Resolution> | Measure DCV. Configures DC voltage and returns one measured value in volts. |
| CONFigure:VOLTage:DC34401A: CONFigure:VOLTage:DC <Range>,<Resolution> | Config DCV. Configures the meter for DC voltage measurement using default range and resolution. |
| TRIGger:SOURce <Source> | Set Trigger Source. Sets the trigger source for the measurement. |
| SYSTem:BEEPer:STATe ON | Beeper On. Enables the beeper. |
| DISPlay:TEXT <Message>34401A: DISPlay:TEXT "<Message>" | Set Display Text. Displays the specified text message on the front-panel display. |
| SAMPle:COUNt <Count> | Set Sample Count. Sets the number of samples taken per trigger (1 to 50000). |
| READ? | Read Reading. Starts a new measurement and returns the reading using the current configuration. |
| FETCh? | Fetch Reading. Returns readings already stored in memory from the current trigger without starting a new measurement. |
| INITiate | Initiate. Changes the trigger state from idle to wait-for-trigger and stores readings in memory. |
| DATA:POINts? | Read Data Count. Returns the number of readings currently stored in reading memory. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
33 command headers in the 8846A library have no match in the 34401A library. Below are 19 of them from the 6 largest subsystems; the full list is in the Fluke 8846A command reference.
| Command | What it does |
|---|---|
| VOLTage:DC:RANGe <Range> | Set DCV Range. Sets the manual DC voltage range in volts. |
| VOLTage:DC:RANGe? | Read DCV Range. Returns the present DC voltage range in volts. |
| VOLTage:DC:RANGe:AUTO ON | DCV Autorange On. Enables autoranging for DC voltage. |
| VOLTage:AC:RANGe <Range> | Set ACV Range. Sets the manual AC voltage range in volts. |
| Command | What it does |
|---|---|
| CURRent:DC:RANGe <Range> | Set DCI Range. Sets the manual DC current range in amps. |
| CURRent:DC:RANGe:AUTO ON | DCI Autorange On. Enables autoranging for DC current. |
| CURRent:AC:RANGe <Range> | Set ACI Range. Sets the manual AC current range in amps. |
| CURRent:AC:RANGe:AUTO ON | ACI Autorange On. Enables autoranging for AC current. |
| Command | What it does |
|---|---|
| CALCulate:NULL:OFFSet? | Read Null Offset. Returns the present null (relative) offset value. |
| CALCulate:DB:REFerence? | Read dB Reference. Returns the present dB reference value. |
| CALCulate:DBM:REFerence? | Read dBm Reference. Returns the present dBm reference resistance in ohms. |
| Command | What it does |
|---|---|
| FRESistance:RANGe <Range> | Set 4W Res Range. Sets the manual 4-wire resistance range in ohms. |
| FRESistance:RANGe:AUTO ON | Res 4W Autorange On. Enables autoranging for 4-wire resistance. |
| FRESistance:NPLC <NPLC> | Set 4W Res NPLC. Sets the integration time for 4-wire resistance in number of power line cycles. |
| Command | What it does |
|---|---|
| RESistance:RANGe <Range> | Set 2W Res Range. Sets the manual 2-wire resistance range in ohms. |
| RESistance:RANGe:AUTO ON | Res 2W Autorange On. Enables autoranging for 2-wire resistance. |
| RESistance:NPLC <NPLC> | Set 2W Res NPLC. Sets the integration time for 2-wire resistance in number of power line cycles. |
| Command | What it does |
|---|---|
| FUNCtion "VOLTage:DC" | Func DCV. Selects DC voltage as the active measurement function. |
| FUNCtion? | Read Function. Queries the currently selected measurement function (returns quoted string such as "VOLT:DC"). |
22 command headers in the 34401A library have no match in the 8846A library. Below are 7 of them from the 3 largest subsystems; the full list is in the Keysight 34401A command reference.
| Command | What it does |
|---|---|
| SENSe:FUNCtion "<Function>" | Set Function. Selects the active measurement function using the SENSe function name. |
| SENSe:FUNCtion? | Read Function. Returns the present measurement function as a quoted string. |
| SENSe:VOLTage:DC:RANGe <Range> | Set DCV Range. Sets the manual range for DC voltage measurements. |
| SENSe:VOLTage:AC:RANGe <Range> | Set ACV Range. Sets the manual range for AC voltage measurements. |
| Command | What it does |
|---|---|
| INPut:IMPedance:AUTO <State> | Set DCV Impedance. Enables or disables automatic input impedance selection for DC voltage (OFF gives fixed 10 MOhm). |
| INPut:IMPedance:AUTO? | Read DCV Impedance. Returns the automatic input impedance state for DC voltage measurements. |
| Command | What it does |
|---|---|
| DISPlay:STATe ON | Display On. Turns the front-panel display on. |
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 CALCulate:FUNCtion (set math function), and the same line runs on each. For the reading, both libraries hold MEASure:VOLTage:DC? (measure dcv); the 34401A library writes it as MEASure:VOLTage:DC? AUTO,MIN. 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_8846A_ADDRESS") # Fluke 8846A
b = rm.open_resource("PASTE_34401A_ADDRESS") # Keysight 34401A
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Set Math Function
a.write("CALCulate:FUNCtion NULL")
b.write("CALCulate:FUNCtion NULL")
# The same reading on both: Measure DCV
print(a.query("MEASure:VOLTage:DC?"))
print(b.query("MEASure:VOLTage:DC? AUTO,MIN"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Fluke 8846A or Keysight 34401A and writes the report from the measured results.
In TestFlow's library the 8846A has 118 SCPI commands and the 34401A has 94 SCPI commands. 57 command headers are common to both, 33 are only on the 8846A (mostly VOLTage and CURRent), and 22 are only on the 34401A (mostly SENSe and INPut).
Partly. 57 command headers are accepted by both, including CALCulate:FUNCtion, MEASure:VOLTage:DC?, and CONFigure:VOLTage:DC. 55 are not, for example VOLTage:DC:RANGe on the 8846A and SENSe:FUNCtion on the 34401A, so a script that uses those needs a separate branch for each instrument.
The 8846A: 118 commands for the 8846A against 94 for the 34401A in TestFlow's library. Of those, 35 on the 8846A and 27 on the 34401A are queries that read a value or state, and the library splits them into 20 and 17 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.