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
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,
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.
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.
Every automated scope measurement follows the same five steps in the same order, whichever vendor is on the bench:
Reset with *RST. Never autoscale inside a test: autoscale picks settings from whatever signal is present, so two runs stop being comparable.
Configure the channel: vertical scale, coupling, probe ratio, and bandwidth limit.
Configure the timebase so the feature you measure fills the screen. Frequency needs at least two full cycles.
Configure the trigger: edge source, level, and slope.
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.
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.
| Task | Keysight InfiniiVision 3000T / 4000 X | Tektronix 4/5/6 Series MSO | Rigol DS1000Z |
|---|---|---|---|
| Timebase | :TIMebase:SCALe 1E-3 | HORizontal:SCAle 1E-3 | :TIMebase:MAIN:SCALe 1E-3 |
| Probe ratio | :CHANnel1:PROBe 10 | Query only: CH1:PRObe:GAIN? | :CHANnel1:PROBe 10 |
| Single acquisition | :DIGitize CHANnel1 | ACQuire:STOPAfter SEQuence, then ACQuire:STATE ON | :SINGle |
| Wait for it | *OPC? | *OPC? | Poll :TRIGger:STATus? until STOP |
| Vpp | :MEASure:VPP? CHANnel1 | MEASUrement:MEAS1:TYPe PK2Pk, then MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN? | :MEASure:ITEM? VPP,CHANnel1 |
| Screenshot | :DISPlay:DATA? PNG,COLor | SAVe:IMAGe, then FILESystem:READFile | :DISPlay:DATA? ON,OFF,PNG |
| Waveform data | :WAVeform:DATA? | CURVe? | :WAVeform:DATA? |
| No-result value | +9.9E+37 | 9.91E+37 | Check on your model |
| Response headers | None | Send HEADer OFF | None |
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 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:
(code - yreference) * yincrement + yorigin, with the constants from :WAVeform:PREamble?.(code - YORigin - YREFerence) * YINCrement. NORMal mode returns 1,200 points on a DS1000Z and 1,000 on a DHO800/900.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.
Vendor scope software splits into capture, analysis, no-code apps, and Python drivers, and each tool stops at a different point:
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.
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:
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.
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.
Brand comparisons for engineers buying a scope that will end up driven by a script.
Vendor capture, analysis, and no-code tools, and the point where each one stops.
Working PyVISA code for measurements, captures, waveform scaling, and signal generation.
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
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.
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.
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.
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.