Back to blog
Ali KamalyAli Kamaly
May 31, 2026
4 min read
Instrument Automation

Keysight 34465A SCPI Commands: Complete Reference and a Faster Way to Automate It

Keysight 34465A SCPI commands reference for DC voltage, resistance, and logging, plus how TestFlow automates the 34465A without writing SCPI by hand.

Keysight 34465A SCPI Commands: Complete Reference and a Faster Way to Automate It

If you are looking up Keysight 34465A SCPI commands, you are automating the instrument, and you have probably also searched the 34465A programming manual. This reference covers the SCPI commands you actually use on the 34465A for DC voltage, resistance, and logging, and then shows how TestFlow automates the same measurements without writing or maintaining SCPI by hand.

SCPI basics on the 34465A

The 34465A accepts SCPI over USB, LAN, and GPIB. Commands follow the standard structure of subsystems and queries. Start by confirming the connection:

  • *IDN? returns the instrument identity string.
  • *RST resets the instrument to a known state.
  • *CLS clears the status registers.

DC voltage measurement

The most common measurement, configured and read:

  • CONF:VOLT:DC 10,0.001 sets DC voltage with a 10 V range and resolution.
  • SENS:VOLT:DC:NPLC 10 sets integration time in power line cycles for lower noise.
  • SENS:VOLT:DC:RANG:AUTO ON enables auto range.
  • READ? triggers and returns a reading.
  • MEAS:VOLT:DC? 10,0.001 configures and reads in one command.

Resistance measurement

For two and four-wire resistance:

  • CONF:RES 1E3 configures two-wire resistance on a 1 kohm range.
  • CONF:FRES 1E3 configures four-wire resistance for better accuracy.
  • READ? returns the reading.

Triggering and sample count

  • TRIG:SOUR IMM sets immediate triggering, or BUS or EXT for bus and external.
  • SAMP:COUN 100 sets samples per trigger.
  • TRIG:COUN 10 sets the number of triggers.
  • INIT then FETC? arms the measurement and fetches results.

Data logging

For logged measurements the 34465A buffers readings you retrieve with FETC? or R?. You set the function, sample count, and trigger, then initiate and read back the buffer.

The catch with raw SCPI

This works, and it is also where the maintenance burden starts. Every test is a script. The script is specific to this instrument and pairing. A firmware update or a hardware change can break it, and the SCPI logic lives in one engineer's head.

A faster way: automate the 34465A with TestFlow

TestFlow generates and runs the SCPI for you, driven from the datasheet.

  • Datasheet to plan. Upload the 34465A datasheet and TestFlow builds the measurement sequence and logging setup.
  • No hand-written SCPI. TestFlow produces and executes the commands, so you do not maintain scripts.
  • Vendor-neutral. Combine the 34465A with a non-Keysight supply or scope in one workflow.
  • Repeatable and shareable. The run is defined once and behaves identically on any machine.

Use SCPI when you must, automate when you can

The commands above are the reference you need when you write SCPI directly. When you want the measurement without the maintenance, let TestFlow handle it.

Start free at testflow.io, upload your 34465A datasheet, and get an automated measurement plan in minutes.

Ready to automate your lab?

Connect your instruments, describe a test in plain English, and TestFlow builds and runs it in minutes.

Tags

keysight 34465a scpi commands34465a programming manualkeysight 34465a programming manual
Share this article:
Ali Kamaly

Article by

Ali Kamaly

Ali Kamaly is the Co-Founder and CEO of TestFlow, an AI-native platform for electronics test automation. He writes about test automation, lab validation, and the infrastructure behind modern hardware engineering.

TestFlow 2.0 is live now.Request your access.

Experience the next generation of hardware validation. Run automated test sequences, capture clean data, and accelerate your time-to-market.

Automate Your Lab Testing For Free