Oscilloscopes and logic analysers in one view: analog and logic channels from separate instruments, on one time axis. Apache-2.0.
For a bench with more than one scope: the channels of each, side by side on one plot. pyscopegui reads the scopes live, triggers on any channel, measures between cursors, decodes CAN, UART, SPI, I²C and parallel buses, and keeps the last seconds or minutes of everything to go back over, export to CSV, or save and open again later. Every scope is set up the same way -- volts a division, probe, coupling.
Works with the PicoScope 2000 series (including the MSO variants), the Rigol DS1000Z series and the Tektronix TDS/TPS 2000 series.
- Channels and Plot: analog channels on one plot and digital channels in lanes under it, on the same time axis. Drag or zoom either and both move. Y fits the voltage axis to the signal, shows the range the channels are set to as a scope's screen does, or holds it where you put it. A second voltage axis, Y2, on the right, for a current probe's amps or any channel put there. A channel can be given a name of its own: 5V rail (CH1).
- Deep captures stay quick: the last ten seconds of every channel are held, or up to ten minutes if you ask, and what is drawn is cut down to a lowest and a highest per column of the screen, so a spike narrower than a pixel is still drawn.
- Cursors and measurements: one or two cursors, with what every channel read at each beside its name; the Measurements pane -- levels, peak to peak, RMS, frequency, period, duty -- between the cursors or over what is in view; and the Data pane, the samples themselves, a row for each, to copy into a spreadsheet.
- Triggers on any channel: a scope's own Stop, Single, Normal and Auto, and an edge rising, falling or either way, a window, a pulse's width, a runt, a timeout, a logic pattern, or a frame read off a decoded bus, each with a holdoff, on the Nth time and after a delay. A PicoScope reading blocks and a Rigol do most of them in their own hardware, at their full rate.
- Several instruments at once, and two of the same kind: Add instrument puts each in the Instrument pane with a tab of its own, where it is opened and set up. Each has its own trigger, and is drawn around it; or one leads, and the others are shown at about the moment its trigger comes, by the computer's clock.
- Decoding buses: right-click a channel, analog or logic, and decode it as CAN, UART, SPI, I²C or a parallel bus -- an ADC's outputs on a mixed-signal scope's logic inputs, its two channels told apart by a multiplex line, and drawn as channels in volts. The Decoded buses pane lists every frame, character and transfer in view on the plot or between the cursors, problems and all, and each bus can be paused, removed and added there.
- Decoded CAN to pycangui: frames read off a scope's channel are sent on by UDP multicast to pycangui -- a CAN bus tool, on PyPI too -- and any other program on python-can's UDP multicast bus, which take them as they would from a CAN adapter. On this computer only, or across the local network if you choose.
- Maths channels: two channels added, taken away, multiplied or divided; or one inverted, made positive, squared, square-rooted, scaled and offset, differentiated, integrated or averaged. Drawn, measured, triggered on and decoded like any other.
- Probes: 1x to 1000x, a differential probe's ratio, or a current probe read in amps, with the scale, the offset, the cursors and the measurements all in its units.
- Python Console: Python inside the window, with commands to drive the scopes, read their samples and make maths channels, and File > Run script... for a script kept in a file.
pyscopegui --run script.pyruns one as it starts and closes with its exit code, for captures taken unattended. - Workspaces: one for each bench or setup, each with its own instruments, settings and panes, chosen under File > Workspace.
- Export to CSV: every sample of what the plot shows, or of what is between the cursors, with time measured from the trigger, one file for each instrument -- or copied, headed, to paste straight into a spreadsheet. A picture of the plot saved as PNG or copied.
- Save and open captures: everything held kept in a file and opened again exactly as it was, showing what was shown, beside the live instruments -- a
.pyscp, which can be double-clicked; and CSV files -- pyscopegui's own, or another tool's, with lines to skip and columns to choose -- opened the same way. - Instrument pane: the settings of whichever instrument is chosen, and on a Rigol or Tektronix, Read and Write to take the scope's own settings or send the pane's.
- Panes that dock, float, detach into windows of their own and pin on top, with the arrangement remembered. More than one plot can be open at once.
- Event Log: everything the application has to say, warnings and errors in their own colours.
- Instrument traffic: every command sent to an instrument and every answer.
Full details are in the manual, which is also under Help > Documentation in the application. What each version added, changed and fixed is in the changelog, which is part of the manual too.
- PicoScope 2000 series, both ranges of them, and the scope's signal generator. The 2202, 2203, 2204, 2204A, 2205 and 2205A: both channels, streamed continuously at up to 1 MS/s, or read in short blocks at up to 100 MS/s around the scope's own trigger. The 2206 to 2208 in their A and B forms, the four-channel 2405A to 2408B, and the MSO models: two or four channels and an MSO's sixteen logic inputs, streamed at up to 31.25 MS/s, or read in blocks of up to a million samples at the scope's full rate.
- Rigol DS1000Z series (DS1054Z, DS1074Z, DS1104Z, and the Plus, -S and MSO models), over the network or USB: the four analog channels, a sweep at a time around the scope's own trigger, read from its screen or its whole memory, with its own trigger types: either edge, pulse width, runt, window, timeout and pattern; or read as it is, set up and triggered at the bench, with nothing on it changed. The logic inputs and signal generator that some models have are not used yet. Over the network nothing of Rigol's needs installing; USB goes through Rigol's VISA library where it is installed, and pyvisa-py, which comes with pyscopegui, where it is not.
- Tektronix TDS/TPS 2000 series (TDS200, TDS1000, TDS2000 and TPS2000 over a serial port; the TDS1000B, TDS2000B and TDS2000C over USB): two or four channels, a sweep at a time around the scope's own trigger, or what is on its screen read off with nothing on the scope changed. Suited to taking a capture off the scope rather than watching one live.
- pycangui signals: the signals pycangui decodes from a CAN bus with its database, sent over UDP multicast on this computer or the local network, as channels in their own units, lined up with the scopes by the time of each frame, and triggered on like any other.
Pico's library is not bundled. Install the PicoSDK from picotech.com/downloads. If Pico's own PicoScope 7 is running, close it first, since only one program can have the scope open.
There are three options:
-
With pip -- from PyPI, into whichever Python environment you choose. Python 3.12 or newer is needed.
To install it:
pip install pyscopeguiTo run it:
pyscopeguiTo update it:
pip install --upgrade pyscopeguiIt is an ordinary Python package with an ordinary entry point, so the choice of environment is yours.
-
The Windows installer --
pyscopegui-<version>-setup.exefrom the releases page. Nothing else is needed: not even Python. It installs a self-contained application, offers a desktop shortcut, and uninstalls cleanly.It asks first who it is for: everybody who uses the computer, which needs administrator rights, or only you, which does not.
-
From a Git clone -- clone the repository, then double-click
pyscopegui.cmd(Windows) or run./pyscopegui.sh(Linux). This is the way to have the latest changes before they are released, or to contribute. Python 3.12 or newer must be on the PATH.For a shortcut, Tools > Settings > Add shortcut to Start menu (the applications menu on Linux) and, on Windows, Add shortcut to desktop. The entry starts the launcher, so a start from it after a pull still picks up new libraries. A pip installation has the same two, and its shortcut starts the Python it is installed in.
The first run sets itself up: it creates a virtual environment -- a folder called
.venvholding its own copy of Python and only the libraries pyscopegui needs, so nothing else on the machine is touched -- and downloads a couple of hundred megabytes into it. That takes a few minutes once; every later start is immediate, and deleting.venvundoes the whole thing. Ifuvis installed it is used instead of pip. CONTRIBUTING.md says which Python it chooses, and what it does when that Python goes.
On Linux, however pyscopegui is installed, Qt needs a system library to draw the window, and Debian, Ubuntu, Linux Mint and the like often leave it out:
sudo apt install libxcb-cursor0
pyscopegui names any that are missing as it starts.
Where your own files are kept is the same whichever way it was installed: %APPDATA%\pyscopegui on Windows, ~/.config/pyscopegui on Linux and ~/Library/Application Support/pyscopegui on macOS. Upgrading and uninstalling leave that folder alone. How to uninstall each way is in the manual.
| System | Tested with |
|---|---|
| Windows 10 or 11, x86-64 | Python 3.14 and 3.15 |
| Windows 10 or 11, x86-64, with the installer | its own Python 3.14: nothing else to install |
| Windows 11, ARM64 | Python 3.14 |
| Linux, x86-64 | Python 3.12 to 3.15 |
| Linux, ARM64 (glibc 2.39 or later: Ubuntu 24.04, Debian 13, Raspberry Pi OS trixie) | Python 3.14 |
| macOS, Apple silicon or Intel | Python 3.14 |
CI tests Windows and Linux on x86-64 on every push, and the rest for each release. Instruments have so far been tried only on Windows 10 and 11. A PicoScope needs the PicoSDK built for the same system as the Python pyscopegui runs on: x86-64 or ARM64.
pyscopegui is Apache-2.0 and is a pure-Python application on top of these packages, each used unmodified under its own licence. The LGPL components stay separate, replaceable packages, as the LGPL requires.
| Package | Used for | Licence |
|---|---|---|
| Python | Runtime | PSF-2.0 |
| PySide6-Essentials | GUI toolkit (Qt for Python) | LGPL-3.0 (used under LGPL) |
| shiboken6 | Qt binding runtime used by PySide6 | LGPL-3.0 (used under LGPL) |
| pyqtgraph | Plotting | MIT |
| numpy | Sample arrays | BSD-3-Clause (with 0BSD / MIT / Zlib / CC0 parts) |
| pyvisa | A scope on USB, through a VISA library | MIT |
| pyvisa-py | The VISA library used where the computer has none | MIT |
| pyusb | USB, for pyvisa-py | BSD-3-Clause |
| libusb-package | libusb, ready-made, for pyusb (not on Windows on ARM64) | Apache-2.0; libusb itself LGPL-2.1 (used under LGPL) |
| pyserial | Serial port, for the Tektronix scopes | BSD-3-Clause |
| python-can | Decoded CAN frames sent on by UDP multicast, to pycangui and others | LGPL-3.0 (used under LGPL) |
| msgpack | Packing those frames, on Windows, as python-can's UDP multicast bus does | Apache-2.0 |
The icons beside the words on buttons and menu items are Microsoft's Fluent UI System Icons, MIT, shipped with pyscopegui as files rather than a package -- the same ones pycangui uses.
Only LGPL Qt modules are used (QtCore, QtGui, QtWidgets, QtSvg). pyscopegui depends on PySide6-Essentials rather than the full PySide6, so the GPL-only add-on modules (Qt Charts, Qt Data Visualization and the rest) are never installed.
See CONTRIBUTING.md: setting up, running the tests, and building the Windows installer. Everyone taking part is asked to follow the code of conduct, and security problems go through SECURITY.md.
pyscopegui shows what instruments connected to real equipment measure. A scope's ground clip is connected to the computer's ground unless the scope or its USB connection is isolated, and clipping it to a point that is not at ground can damage the equipment, the scope and the computer. Know what you are connecting to before you connect.
If you find pyscopegui doing something unsafe -- switching an instrument's output, such as a signal generator, on without being asked, or not stopping what it says it stopped -- open an issue.
pyscopegui is free software, provided under the Apache License 2.0, without warranty of any kind; see LICENSE and NOTICE.
Development has made use of Anthropic's Claude.

