Topic hub

Oscilloscope automation for Keysight, Tektronix, and Rigol scopes

Oscilloscope automation means sending SCPI over VISA to reset the scope, set the channel, timebase, and trigger, take one acquisition, wait for it, and then read a measurement or the waveform. That sequence is the same on every scope. The command strings differ by vendor, and those differences are where most automation time goes.

10 articles · Updated November 24, 2026

Start here

  1. 01Automate Oscilloscope Measurements in 2026 (Keysight, Tek, Rigol)

    The SCPI that differs between Keysight InfiniiVision, Tektronix 4/5/6 Series MSO, and Rigol DS1000Z and DHO scopes, checked against each programming manual, with working PyVISA code for measurements, single acquisitions,

  2. 02Keysight vs Tektronix Oscilloscopes in 2026 (Which to Buy)

    A practical comparison of Keysight and Tektronix oscilloscopes for validation work: the real differences in update rate, licensing, serial decode, and automation, and how to decide.

  3. 03Tektronix OpenChoice Alternatives in 2026 (Free & Cross-Vendor)

    OpenChoice is free, Tektronix-only, and does screen capture and data transfer. Here is what it covers, the point at which every user outgrows it, and the five alternatives.

How to automate an oscilloscope in five steps

Every automated scope measurement follows the same five steps in the same order, whichever vendor is on the bench:

  1. 1

    Reset with *RST. Never autoscale inside a test: autoscale picks settings from whatever signal is present, so two runs stop being comparable.

  2. 2

    Configure the channel: vertical scale, coupling, probe ratio, and bandwidth limit.

  3. 3

    Configure the timebase so the feature you measure fills the screen. Frequency needs at least two full cycles.

  4. 4

    Configure the trigger: edge source, level, and slope.

  5. 5

    Take a single acquisition, wait for it, then measure.

Step 5 is where scripts fail. Reading a measurement while the scope is still running returns a value from an unknown acquisition, and no error says so. Bandwidth also decides whether a rise-time number means anything: a 100 MHz scope contributes about 3.5 ns of its own rise time, so a true 5 ns edge reads as about 6.1 ns. Automate oscilloscope measurements has working PyVISA code for all three families, including a pass/fail ripple sweep, and the PyVISA tutorial covers backend setup.

Oscilloscope SCPI differences: Keysight vs Tektronix vs Rigol

The setup rows of a scope script look alike across vendors; the acquisition, measurement, and transfer rows do not. This table comes from the vendor comparison in automate oscilloscope measurements, which was checked against each programming manual.

TaskKeysight InfiniiVision 3000T / 4000 XTektronix 4/5/6 Series MSORigol DS1000Z
Timebase:TIMebase:SCALe 1E-3HORizontal:SCAle 1E-3:TIMebase:MAIN:SCALe 1E-3
Probe ratio:CHANnel1:PROBe 10Query only: CH1:PRObe:GAIN?:CHANnel1:PROBe 10
Single acquisition:DIGitize CHANnel1ACQuire:STOPAfter SEQuence, then ACQuire:STATE ON:SINGle
Wait for it*OPC?*OPC?Poll :TRIGger:STATus? until STOP
Vpp:MEASure:VPP? CHANnel1MEASUrement:MEAS1:TYPe PK2Pk, then MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?:MEASure:ITEM? VPP,CHANnel1
Screenshot:DISPlay:DATA? PNG,COLorSAVe:IMAGe, then FILESystem:READFile:DISPlay:DATA? ON,OFF,PNG
Waveform data:WAVeform:DATA?CURVe?:WAVeform:DATA?
No-result value+9.9E+379.91E+37Check on your model
Response headersNoneSend HEADer OFFNone

Three differences cause most porting bugs. Tektronix 4, 5, and 6 Series scopes have no MEASUrement:IMMed commands, so code written for older Tek scopes must move to numbered MEAS<x> objects. Tektronix has no plain probe-ratio command, because its probes report themselves. And Rigol's DS1000Z defaults to a 10X probe ratio while the DHO800/900 defaults to 1X, so one script reads a factor of ten apart on two Rigol scopes.

Rigol's colon-prefixed command tree makes Rigol scripts resemble Keysight scripts more than Tektronix ones. The vendor deep dives are automate a Rigol oscilloscope with Python and automate a Tektronix oscilloscope with Python. For supplies, DMMs, and generators, the SCPI command cheat sheet has the same kind of table.

Screenshots and waveform transfer over SCPI

Screenshots and waveforms come back differently on each family, and each needs one step that is easy to miss. Keysight's :DISPlay:DATA? returns an inverted image unless you send :HARDcopy:INKSaver OFF first. Tektronix 4/5/6 Series scopes write the image to their own drive, then stream the file back. The Rigol DHO800/900 uses :DISPlay:DATA? PNG rather than the DS1000Z form.

Waveform transfer returns raw ADC codes, never volts, so every vendor's preamble matters:

  • •Keysight: volts are (code - yreference) * yincrement + yorigin, with the constants from :WAVeform:PREamble?.
  • •Rigol: same preamble order, different formula: (code - YORigin - YREFerence) * YINCrement. NORMal mode returns 1,200 points on a DS1000Z and 1,000 on a DHO800/900.
  • •Tektronix: query WFMOutpre:YMUlt?, YOFf?, and YZEro? one by one rather than parsing the preamble by position, because the manual prints two different field orders.

A failed measurement is a value, not an error. Treat anything above 9E+37 as no result: graded against a limit, it becomes a huge failure, or worse, a pass on a minimum limit. On a Keysight scope, use VISA or port 5025, not the telnet port 5024, which returns zeros in waveform data.

Use binary transfer for long records. If a test pulls a deep record on every one of hundreds of iterations, transfer time dominates the run, which is why Keysight vs Tektronix oscilloscopes says to time it on your real record length during an evaluation loan.

Tektronix OpenChoice, TekScope, KickStart, and other scope software

Vendor scope software splits into capture, analysis, no-code apps, and Python drivers, and each tool stops at a different point:

  • •OpenChoice Desktop is a free Windows utility that captures screen images, waveform data, and settings. It needs TekVISA, its model list centers on older Tektronix families, and version 2.8 from December 2020 is the latest. It cannot set a supply or load before a capture, which is where OpenChoice alternatives picks up.
  • •TekScope PC analyzes saved or live waveforms away from the bench, with a free Basic license for one remote scope. Batch analysis of hundreds of captures is where Python wins, as TekScope alternatives shows.
  • •Keithley KickStart is the no-code app suite Tektronix sells for its own instruments. Its Scope app covers TBS, TDS, DPO, MDO, and MSO families up to the 6 Series B MSO, and controlling an instrument needs a license after the 30-day trial. Automate Tektronix instruments without coding ranks it against five other options, and the Keysight equivalent does the same for BenchVue.
  • •tm_devices is Tektronix's free, Apache 2.0 Python package for its 2 through 7 Series scopes, AFGs, AWGs, and Keithley SMUs, built on PyVISA. See Python instrument control libraries compared.
  • •Rigol and Siglent tools: UltraSigma sends SCPI from a panel, DHO800 scopes have built-in Web Control, and Siglent's SigScopeLab acquires and analyzes waveforms. None of them sequences a multi-instrument test, as automating Rigol and Siglent without coding shows.

Tektronix function generators need one setting first. An AFG assumes a 50 ohm load by default, so driving a 1 megohm scope input gives exactly twice the requested amplitude; send OUTPut1:IMPedance INFinity for high-impedance loads. Automate a Tektronix function generator with Python covers sweeps, bursts, and arbitrary waveforms on the AFG31000 and AFG1000.

Keysight vs Tektronix vs Rigol for an automated bench

On an automated bench, the scope brand matters less than SCPI completeness, binary transfer speed, and option licensing, because nobody touches the front panel once a script runs. Where the brands genuinely differ:

  • •Keysight InfiniiVision leads on waveform update rate, which decides rare-glitch hunting, and its command set is more consistent across models.
  • •Tektronix leads on the 4, 5, and 6 Series touch interface and on mixed-signal integration, and it holds resale value.
  • •Rigol is often good enough for debug, bring-up, and digital timing. Tektronix earns its premium on noise floor, trigger sophistication, probes, and calibration infrastructure, as Tektronix vs Rigol details.

Decode, jitter, and power analysis are commonly licensed options on both premium brands, so price the full configuration, not the model. Query *OPT? on a loaner, because evaluation units often arrive fully optioned. Whatever you buy, results only become evidence once they land in a report, which automated test report generation covers.

Where TestFlow fits

TestFlow is an AI agent for electronics testing. Describe the measurement, for example ripple on scope channel 1 at three input voltages with a 33 mV limit, and the agent builds the automation with the SCPI for the scope on your bench, drives the supply and scope, and writes the report from the run's own results. It is vendor-agnostic and 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 and is not a full test executive. Check your scope model on supported instruments.

Every article in this guide

Choosing a scope brand

Brand comparisons for engineers buying a scope that will end up driven by a script.

Scope software and no-code options

Vendor capture, analysis, and no-code tools, and the point where each one stops.

Python and SCPI guides

Working PyVISA code for measurements, captures, waveform scaling, and signal generation.

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.

Oscilloscope

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

Frequently asked questions

How does Tektronix compare with other oscilloscope makers?

Against Keysight, Tektronix leads on the touch interface of its 4, 5, and 6 Series and offers its own Python package, tm_devices, while Keysight InfiniiVision leads on waveform update rate and SCPI consistency across models. Against Rigol, Tektronix earns its premium on noise floor, triggers, probes, and calibration infrastructure, and holds resale value better. On an automated station, SCPI completeness and transfer speed matter more than brand.

Is Rigol a good oscilloscope brand?

For general debug, bring-up, and digital timing at moderate bandwidth, a Rigol scope is often good enough and costs far less. Premium brands pull ahead on low-level signals where the noise floor limits you, on rare-event triggering, and on accredited calibration. A common small-lab pattern is Rigol scopes on the general benches and one premium instrument for the measurements that need it.

What is Tektronix OpenChoice Desktop, and is it still updated?

OpenChoice Desktop is a free Windows utility that captures screen images, waveform data, and settings from Tektronix scopes to a PC. It needs TekVISA, and its supported models center on older TDS, TPS, TBS, DPO, MSO, and MDO families. The latest version, 2.8, dates from December 14, 2020. For scripting, Tektronix's better-supported route is its tm_devices Python package.

What are the Rigol SCPI commands for oscilloscope measurements?

On a Rigol DS1000Z, read built-in measurements with :MEASure:ITEM?, for example :MEASure:ITEM? VPP,CHANnel1 or :MEASure:ITEM? FREQuency,CHANnel1. Set the timebase with :TIMebase:MAIN:SCALe and take one capture with :SINGle. Rigol documents *OPC? as non-blocking, so poll :TRIGger:STATus? until it returns STOP. The DHO800 and DHO900 autoscale with :AUToset instead of :AUToscale.

How do I automate a Tektronix oscilloscope with PyVISA?

Open the scope by its VISA resource string and send HEADer OFF so replies are bare values. On a 4, 5, or 6 Series MSO, set ACQuire:STOPAfter SEQuence, start with ACQuire:STATE ON, and wait with *OPC?. Create numbered measurements such as MEASUrement:MEAS1:TYPe PK2Pk and read MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?. Tektronix's tm_devices package wraps much of this for Tektronix hardware.

What is TekScope, and is it free?

TekScope PC is Tektronix's waveform viewing and analysis software. It moves scope measurements, cursors, and serial decode onto a PC so the instrument stays free for capture. A free Basic license connects to one remote scope, and paid tiers started at $424 a year as of October 2026. For batch analysis of hundreds of captures, Python with NumPy and SciPy goes further and can live in version control.

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.