Topic hub

Keysight instrument automation, from IO Libraries to a finished test

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

Start here

  1. 01Automate Keysight Instruments Without Coding in 2026 (6 Options)

    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

  2. 02Keysight IO Libraries Suite: What It Does and When You Need More

    Keysight IO Libraries Suite explained: Connection Expert, VISA, and instrument I/O, plus when a no-code layer like TestFlow saves you the scripting.

  3. 03Automate a Keysight Power Supply with Python in 2026 (E36100/E36300)

    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.

What each Keysight automation tool does

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.

ToolWhat it doesCostVendor scope
IO Libraries SuiteFinds instruments, provides VISA, sends SCPI by handFreeAny VISA instrument
Command ExpertBrowses command sets, builds command sequences, exports codeFreeKeysight command sets; generic SCPI connects
BenchVue and Test FlowSoftware front panels, logging, drag-and-drop sequences, export to Excel, MATLAB, CSV, or WordPlatform and Test Flow free; instrument apps free Basic or licensedKeysight apps; others by typed SCPI
PathWave Test AutomationGraphical editor for OpenTAP test plansFree Community license; commercial by quoteAny instrument with a plugin
Keysight MCP ServerTurns natural-language requests into SCPI from an AI clientFree betaKeysight validated models only
Python and PyVISAScripts you write, version, and run on any OSFreeAny SCPI instrument
TestFlowAI agent that builds, runs, and reports the testSee pricingVendor-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:

  • •All Keysight, simple sequences, Excel output is fine: BenchVue Test Flow. The BenchVue alternatives guide covers where it stops.
  • •All Keysight, real sequencing, someone can write a plugin: PathWave Test Automation.
  • •A known command list you want to run from a spreadsheet: Command Expert.
  • •You will maintain code and want version control: Python and PyVISA.
  • •Mixed vendors, or a verdict and report on every run: a vendor-neutral layer. BenchVue vs LabVIEW explains why neither of those two fits that case well.

If the bench also needs a scope, Keysight vs Tektronix oscilloscopes compares the two on SCPI structure and option licensing.

Keysight IO Libraries Suite: the layer under every option

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.

Automating Keysight DMMs, supplies, and generators with SCPI

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.

InstrumentCore commandsThe detail that matters
34465A or 34461A DMMCONF: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 supplyVOLT 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 generatorSOUR1:FUNC SIN, SOUR1:FREQ 1E3, SOUR1:VOLT 2.0, OUTP1 ONSweeps 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 data loggers and DAQ: 34970A, 34972A, and DAQ970A

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 VNA and network analyzer software

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.

Where TestFlow fits

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.

Every article in this guide

Keysight software: cost and alternatives

What Keysight's own automation tools cost, where each one stops, and what teams replace them with.

Choosing Keysight hardware

Comparisons for scopes, data loggers, and network analyzers, written for a bench that will be automated.

Programming Keysight instruments

SCPI sequences and Python scripts for the Keysight bench instruments engineers automate most.

Manuals and datasheets

Quick references for the specs and front-panel functions you validate against.

Instrument command references

Every command TestFlow's agent uses to drive each instrument, from TestFlow's own instrument library, with arguments and a working PyVISA example.

Function Generator

Multimeter

Oscilloscope

Power Supply

Spectrum Analyzer

By vendor: Aim-TTi, Chroma, GW Instek, ITECH, Keithley, Keysight, Rigol, Rohde & Schwarz, Siglent, Tektronix, Teledyne LeCroy, UNI-T

Frequently asked questions

What is the Keysight IO Libraries Suite used for?

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.

What are alternatives to Keysight software for test measurement data?

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.

Where is the Keysight 34465A manual, and what does it cover?

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.

How do I program a Keysight E36313A power supply?

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 vs NI data logger: which is easier to automate?

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.

What software controls a Keysight network analyzer?

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.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.