Keysight instruments are automated by sending SCPI commands over VISA, which the free Keysight IO Libraries Suite provides. On top of that layer you choose who writes the test: you in Python with PyVISA, BenchVue Test Flow blocks, a PathWave Test Automation plan, or an AI agent that builds the sequence from a description.
21 articles · Updated November 24, 2026
BenchVue Test Flow, PathWave Test Automation, the Keysight MCP server, Command Expert, Instrument RPA, and TestFlow, checked on keysight.com in October 2026, with a worked E36313A, 34465A, and InfiniiVision 3000T example
Keysight IO Libraries Suite explained: Connection Expert, VISA, and instrument I/O, plus when a no-code layer like TestFlow saves you the scripting.
A working guide to driving Keysight bench supplies from Python: VISA addressing, the SCPI commands you actually need, current limits done safely, multi-channel sequencing, and a complete VI sweep script.
Keysight's software splits into one connectivity layer and several ways to build a test on top of it. The IO Libraries Suite is required plumbing; every other row in the table is a choice about who writes the sequence and where the results end up. Costs are as of October 2026, as checked in six ways to automate Keysight instruments without coding.
| Tool | What it does | Cost | Vendor scope |
|---|---|---|---|
| IO Libraries Suite | Finds instruments, provides VISA, sends SCPI by hand | Free | Any VISA instrument |
| Command Expert | Browses command sets, builds command sequences, exports code | Free | Keysight command sets; generic SCPI connects |
| BenchVue and Test Flow | Software front panels, logging, drag-and-drop sequences, export to Excel, MATLAB, CSV, or Word | Platform and Test Flow free; instrument apps free Basic or licensed | Keysight apps; others by typed SCPI |
| PathWave Test Automation | Graphical editor for OpenTAP test plans | Free Community license; commercial by quote | Any instrument with a plugin |
| Keysight MCP Server | Turns natural-language requests into SCPI from an AI client | Free beta | Keysight validated models only |
| Python and PyVISA | Scripts you write, version, and run on any OS | Free | Any SCPI instrument |
| TestFlow | AI agent that builds, runs, and reports the test | See pricing | Vendor-agnostic |
Two naming traps catch people. BenchVue Test Flow is a Keysight app, and TestFlow is an unrelated product from another company, which BenchVue Test Flow vs TestFlow untangles. PathWave Test Automation is built on OpenTAP, the open-source engine, which is why Keysight PathWave alternatives starts with OpenTAP itself.
Pick by the bench you have today:
If the bench also needs a scope, Keysight vs Tektronix oscilloscopes compares the two on SCPI structure and option licensing.
The Keysight IO Libraries Suite is free connectivity software that makes an instrument found and addressable; it does not write your test. Connection Expert discovers instruments on USB, LAN, and GPIB, VISA is the API your code calls, and Interactive IO sends a SCPI command by hand so you can read the reply. Command Expert and the Keysight MCP server both require it.
PyVISA needs a VISA backend, and the IO Libraries Suite is one of three. NI-VISA also works, and pyvisa-py is pure Python with narrower interface support, with no GPIB without extra packages. LAN resource strings look like TCPIP0::192.168.1.42::inst0::INSTR. On USB, 0x2A8D in the string is Keysight's vendor ID, and 0x0957 marks an older Agilent-branded unit that works identically.
When a command fails silently, check the error queue before anything else. SCPI instruments do not raise exceptions; they queue an error and carry on, so SYST:ERR? after each configuration block catches most real bugs. A raw socket on TCP port 5025 tells you in seconds whether the problem is the instrument or your VISA stack. The IO Libraries guide covers where the suite stops, and Command Expert alternatives compares the discovery tools.
Keysight bench instruments need a short list of SCPI commands per class, and the bugs come from ordering, not syntax. These are the commands the per-model guides use.
| Instrument | Core commands | The detail that matters |
|---|---|---|
| 34465A or 34461A DMM | CONF:VOLT:DC 10,0.001, VOLT:DC:NPLC 10, SAMP:COUN 10, READ? | CONF resets trigger and sample settings, so send NPLC and sample count after it |
| E36313A supply | VOLT 5,(@1), CURR 0.5,(@1), OUTP ON,(@1), MEAS:VOLT? (@1) | Set the current limit before the output turns on; MEAS:VOLT?(@1) without the space raises error -103 |
| 33600A generator | SOUR1:FUNC SIN, SOUR1:FREQ 1E3, SOUR1:VOLT 2.0, OUTP1 ON | Sweeps add SOUR1:FREQ:STAR, SOUR1:FREQ:STOP, and SOUR1:SWE:STAT ON |
The 34465A is a 6.5-digit Truevolt DMM that measures DC and AC voltage and current, two- and four-wire resistance, frequency, capacitance, and temperature. Ten readings at 10 NPLC take seconds, so raise the VISA timeout above PyVISA's 2-second default. The 34465A SCPI reference lists the trigger and logging commands, and the 34465A manual quick reference covers front-panel setup. The datasheet guides for the 34465A and the entry-level 34461A cover the specs you validate against.
The E36313A has three outputs: CH1 runs 0 to 6 V at up to 10 A, and CH2 and CH3 run 0 to 25 V at up to 2 A, with 160 W total. Use the channel-list form so hidden channel selection cannot program the wrong rail, and turn the output off in a finally block so a crashed script never leaves the board powered. Automate a Keysight power supply with Python has a complete VI sweep, and E36313A programming covers sequencing. The 33600A guide covers waveforms, sweeps, and arbitrary waveform output on one or two channels.
Keysight's data loggers are switch-and-measure mainframes that route multiplexer channels into a built-in DMM, and all three script the same way. Configure channel blocks, define a scan list, set a timer trigger, then initiate and fetch: CONF:TEMP TC,K,(@101:110), ROUT:SCAN (@101:110), TRIG:SOUR TIM, TRIG:TIM 5, INIT, then FETC?.
The 34970A is the long-running original, controlled over GPIB and RS-232. The 34972A is its LAN- and USB-enabled successor, with three module slots and the same SCPI family. The DAQ970A follows the same command pattern, and Keysight also ships a LabVIEW driver for it. The guides for the 34970A, 34972A, and DAQ970A carry the full sequences, and the 34970A guide adds per-channel scaling with CALC:SCAL.
For code-free logging, the BenchVue DAQ app runs scans from a PC, with advanced logging licensed and the design built around Keysight hardware. Keysight data logger software covers those limits. If you are still choosing an ecosystem, Keysight vs NI data loggers compares the DAQ970A and 34972A against NI CompactDAQ and PXI, where automation runs through LabVIEW.
Keysight network analyzers run from onboard firmware for interactive work, from Keysight's VNA and PNA software on a PC, and from Command Expert with the IO Libraries for SCPI automation. The repetitive parts are the ones worth automating first: the SOLT or ECal calibration before every session, identical sweeps of frequency range, points, IF bandwidth, and power across many units, and consistent Touchstone or CSV export. Keysight's free MCP server beta lists PNA and ENA network analyzers among its validated models as of October 2026. Keysight VNA software lays out the options.
TestFlow is an AI agent for electronics testing. You describe the test, for example a 5 V rail on an E36313A checked by a 34465A, and the agent builds the automation, drives the instruments, and writes the report from the run's own results. It is vendor-agnostic, so a Keysight supply and another maker's scope share one workflow, and it works alongside LabVIEW and TestStand. Bench runs go through the Windows desktop app; the web app builds and simulates. Its DAQ card coverage is limited to a few NI devices, so a bench built around Keysight data acquisition fits BenchVue's DAQ app better. It is not a full test executive: no operator and user management or database connectivity yet. Check coverage on supported instruments.
What Keysight's own automation tools cost, where each one stops, and what teams replace them with.
Comparisons for scopes, data loggers, and network analyzers, written for a bench that will be automated.
SCPI sequences and Python scripts for the Keysight bench instruments engineers automate most.
Quick references for the specs and front-panel functions you validate against.
Every command TestFlow's agent uses to drive each instrument, from TestFlow's own instrument library, with arguments and a working PyVISA example.
By vendor: Aim-TTi, Chroma, GW Instek, ITECH, Keithley, Keysight, Rigol, Rohde & Schwarz, Siglent, Tektronix, Teledyne LeCroy, UNI-T
The Keysight IO Libraries Suite is free connectivity software that lets a PC find and talk to instruments. Connection Expert discovers instruments on USB, LAN, and GPIB, VISA is the API your code calls, and Interactive IO sends SCPI commands by hand for debugging. It does not write the test: sequencing, error handling, logging, and reports sit on top of it, in Python, BenchVue, or another tool.
Python with PyVISA is the free, vendor-neutral default, and it reaches Keysight instruments through the same VISA layer. OpenTAP is the free open-source engine under PathWave Test Automation. pytest with PyVISA suits Python teams that want CI integration. TestFlow is an AI agent that builds, runs, and reports tests across vendors. Keysight's own BenchVue Test Flow and Command Expert are free and strongest on all-Keysight benches.
The full user and programming manuals are on keysight.com. The 34465A is a 6.5-digit Truevolt bench DMM that measures DC and AC voltage and current, two- and four-wire resistance, frequency, capacitance, and temperature, with remote control over USB, LAN, and GPIB. The manual covers setup and operation, the datasheet covers the specs you validate against, and the SCPI reference covers control from code.
Open it with PyVISA over USB, LAN, or GPIB and send SCPI. Set the voltage and current limit while the output is off, for example VOLT 5,(@1) and CURR 0.5,(@1), then enable it with OUTP ON,(@1) and read back with MEAS:VOLT? (@1). CH1 covers 0 to 6 V at up to 10 A, and CH2 and CH3 cover 0 to 25 V at up to 2 A.
Keysight switch-and-measure units such as the DAQ970A and 34972A have a built-in DMM and are driven by BenchVue or SCPI. NI's modular CompactDAQ and PXI systems scale to high channel counts and are driven by LabVIEW or NI drivers. Both automate well inside their own stack. The harder case is a mixed lab, where each vendor's software treats the other vendor's instruments as second-class.
Onboard firmware handles interactive measurement, Keysight's VNA and PNA software controls and analyzes from a PC, and Command Expert with the IO Libraries covers SCPI automation. Keysight's free MCP server beta also lists PNA and ENA network analyzers among its validated models, as of October 2026. Automate the repetitive parts first: calibration, identical sweep setups across units, and consistent Touchstone or CSV export.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.