In TestFlow's instrument library, the Keysight 34401A takes 94 SCPI commands, 27 of them queries, and the Keysight 34410A takes 110 SCPI commands, 31 of them queries. That is 16 more on the 34410A. Counting distinct command headers (the command path without its arguments), 74 are accepted by both, 5 exist only on the 34401A, and 21 only on the 34410A. 94% of the 34401A's command headers also exist on the 34410A.
Both libraries have commands under SENSe, CALCulate, CONFigure, MEASure, SYSTem, TRIGger, DISPlay, and SAMPle, plus 4 more roots. Only the 34401A has INPut. Only the 34410A has ABORt and UNIT.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the 34411A the same command set as the 34410A, so the 34410A column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight 34401A or Keysight 34410A 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.
| Keysight 34401A | Keysight 34410A | |
|---|---|---|
| Commands in TestFlow's library | 94 | 110 |
| Queries (read a value or state) | 27 | 31 |
| Settings and actions | 67 | 79 |
| Subsystems | 17 | 18 |
| Distinct command headers | 79 | 95 |
| Headers the other lacks | 5 | 21 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 34401A | 34410A, 34411A |
74 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What it does |
|---|---|
| SENSe:FUNCtion? | Read Function. Returns the present measurement function as a quoted string. |
| CALCulate:STATe ON | Math Null On. Enables the scaling (null/dB/dBm) math operation on measurements. |
| CONFigure:VOLTage:DC <Range>,<Resolution> | Conf DCV. Configures the instrument for DC voltage measurement with the given range and resolution. |
| MEASure:VOLTage:DC? <Range>,<Resolution> | Measure DCV. Configures and returns a one-shot DC voltage measurement in volts. |
| SYSTem:BEEPer:STATe ON | Beeper On. Enables the beeper for continuity and other audible alerts. |
| TRIGger:SOURce <Source> | Set Trigger Source. Selects the trigger source for measurements. |
| DISPlay:STATe ON | Display On. Turns the front-panel display on. |
| SAMPle:COUNt <Count> | Set Sample Count. Sets the number of measurements taken per trigger. |
| INITiate | Init. Places the instrument in the wait-for-trigger state and stores readings in memory when triggered. |
| READ? | Read. Starts a new measurement and returns the reading directly without storing it in reading memory. |
| FETCh? | Fetch. Returns measurements stored in reading memory by the INITiate command. |
| DATA:POINts? | Data Points. Returns the total number of measurements currently stored in reading memory. |
5 command headers in the 34401A library have no match in the 34410A library. Below are 5 of them from the 2 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:DETector:BANDwidth 3 | ACV Filter 3Hz. Sets the AC voltage filter bandwidth to 3 Hz (slow). |
| SENSe:ZERO:AUTO <State> | Set AutoZero. Enables or disables the autozero mode for DC 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. |
21 command headers in the 34410A library have no match in the 34401A library. Below are 13 of them from the 6 largest subsystems; the full list is in the Keysight 34410A command reference.
| Command | What it does |
|---|---|
| SENSe:FUNCtion:ON "<Function>" | Set Function. Selects the active measurement function using the SENSe function name. |
| SENSe:CAPacitance:RANGe <Range> | Set Cap Range. Sets the manual range for capacitance measurements. |
| SENSe:VOLTage:DC:APERture <Seconds> | Set DCV Aperture. Sets the integration time (aperture) in seconds for DC voltage measurements. |
| SENSe:VOLTage:DC:IMPedance:AUTO <State> | Set DCV Impedance. Enables or disables automatic input impedance selection for DC voltage (OFF gives fixed 10 MOhm). |
| Command | What it does |
|---|---|
| CALCulate:AVERage:SDEViation? | Stat SDev. Returns the standard deviation of all readings since statistics were enabled. |
| CALCulate:AVERage:CLEar | Stat Clear. Clears all accumulated statistics values. |
| Command | What it does |
|---|---|
| CONFigure:CAPacitance <Range>,<Resolution> | Conf Capacitance. Configures the instrument for capacitance measurement with the given range and resolution. |
| CONFigure:TEMPerature <Probe>,<Type> | Conf Temperature. Configures the instrument for temperature measurement using the specified probe type and sensor type. |
| Command | What it does |
|---|---|
| MEASure:CAPacitance? <Range>,<Resolution> | Measure Capacitance. Configures and returns a one-shot capacitance measurement in farads. |
| MEASure:TEMPerature? <Probe>,<Type> | Measure Temperature. Configures and returns a one-shot temperature measurement. |
| Command | What it does |
|---|---|
| SAMPle:SOURce <Source> | Set Sample Source. Selects the sample timing source for samples following the trigger. |
| SAMPle:TIMer <Seconds> | Set Sample Timer. Sets the sample interval when the sample source is set to TIMer. |
| Command | What it does |
|---|---|
| ABORt | Abort. Aborts a measurement in progress and returns the instrument to the idle state. |
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 CONFigure:CONTinuity (conf continuity), 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_34401A_ADDRESS") # Keysight 34401A
b = rm.open_resource("PASTE_34410A_ADDRESS") # Keysight 34410A
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Conf Continuity
a.write("CONFigure:CONTinuity")
b.write("CONFigure:CONTinuity")
# The same reading on both: Measure DCV
print(a.query("MEASure:VOLTage:DC? AUTO,MIN"))
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 Keysight 34401A or Keysight 34410A and writes the report from the measured results.
In TestFlow's library the 34401A has 94 SCPI commands and the 34410A has 110 SCPI commands. 74 command headers are common to both, 5 are only on the 34401A (mostly SENSe and INPut), and 21 are only on the 34410A (mostly SENSe and CALCulate).
Partly. 74 command headers are accepted by both, including SENSe:FUNCtion?, CALCulate:STATe, and CONFigure:VOLTage:DC. 26 are not, for example SENSe:FUNCtion on the 34401A and SENSe:FUNCtion:ON on the 34410A, so a script that uses those needs a separate branch for each instrument.
The 34410A: 94 commands for the 34401A against 110 for the 34410A in TestFlow's library. Of those, 27 on the 34401A and 31 on the 34410A are queries that read a value or state, and the library splits them into 17 and 18 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.