Skip to content

Changelog

0.2.2 – Find devices, Align 0 in the plot, Linux download

New

  • Find devices: Find… in the Devices panel (and benchloom discover) lists the serial ports and USB instruments and recognizes the Hantek scope by its USB id, sending nothing. Ticked ports are then asked what is on them: it listens for FS9721 meters, finds AR488 GPIB adapters and the instruments on their bus (old HP instruments by the readings they send unasked, others by *IDN?), asks Feeltech generators their model and reads the input state of a Kunkin KP184 at Modbus address 1. A device found opens the Add device dialog with its type and resource filled in. Bluetooth ports and ports the project uses are left alone (on a GPIB adapter the project uses, only its instruments' addresses), and networks are never scanned. Plugins declare what their devices are recognized by in a [device.discovery] table.
  • Find in the device dialog: Find… next to Test connection looks for just the device type being edited, lists every one it finds and takes the connection of the one picked: the quick way from the simulator to the real instrument.
  • Align 0 in the plot: with columns on the right axis, Align 0 puts 0 of the left and the right scale at the same height. Zooming or panning in the plot moves both scales together; the wheel or a right-button drag on one axis scales only that scale, around 0. It is remembered per project, and align_zero = true under [plot] turns it on from the start.
  • Linux download: Benchloom-<version>-linux-x86_64.tar.gz on the releases page, built on Ubuntu 22.04 and self-tested like the Windows download. Unpack it and start Benchloom/Benchloom; no installation and no root rights.
  • App menu on Linux: benchloom desktop-entry adds Benchloom to the app menu with its icon (for the user only; --remove takes it out). The app's windows have the Benchloom icon on every system, and on Wayland the taskbar links them to the menu entry.
  • USB instruments on Linux: benchloom udev-rules prints udev rules that give the logged-in user access to the USB instruments the plugins know (Hantek DSO5102P), the xyphro UsbGpib adapter and any USBTMC instrument; --group also allows a group, for test PCs used over SSH.
  • Error messages on Linux: a USB device that cannot be opened points to the udev rules instead of the WinUSB driver, and a serial port without permission names the group to join. The Add device dialog says what its system needs for USB and shows /dev/ttyUSB0 as the example port.
  • Waveform PNGs on Linux: they are drawn without a screen, so test PCs without a desktop (SSH, CI) get them too.
  • Building: packaging/build.py (was build_windows.py) builds the download for the system it runs on.

Bug fixes

  • Report in dark mode: the page has a white background of its own, so it stays readable in a browser set to dark mode.
  • HP 3478A range in the status: get_status names a fixed range as a value (range 30 V) instead of the meter's raw range number, and the simulator numbers the ranges as the meter does for every function.
  • Garbled DT-4000ZC (FS9721) readings: a packet that cannot be a real display (no RS232 symbol, AC and DC together, more than one prefix or unit) is skipped as garbled instead of being read.

0.2.1 – HP 5384A and 5334A/B counters, hardware status per device

  • Tried on hardware: every device type now says whether its driver was tried on a real instrument (yes, partly or no, with what was tried or is missing), in a new tested field of plugin.toml. The Add device dialog and the plugin manager show it as "Tried on hardware", and benchloom describe prints it. A third-party device without it shows "Not stated by the plugin"; a value that does not start with yes, partly or no stops the plugin from loading.
  • Plugin manager and Add device: the text boxes of the info panel (tried on hardware, settings, description) are as tall as their text, so they never scroll; the plugin manager lists all of a plugin's devices instead of four. When the whole panel is taller than the window, it scrolls as one.
  • Plugin versions: HP / Agilent / Keysight 0.2.0 (it stayed at 0.1.0 while the 34970A, 3458A, 34420A, 5384A and 5334A drivers were added), Feeltech 0.1.1.
  • Feeltech FY6900: set_phase and the docs now say that a higher phase delays the channel (channel 2 lags channel 1 by the difference). They said "leads"; an HP 53131A and an HP 5334B both measured channel 2 at 90° as 25 µs behind at 10 kHz.
  • HP 5334A / 5334B universal counter (hp.5334a), from the Operating and Programming Manual and tried on a real 5334B with an FY6900: frequency A, B and C, period, ratio, time interval, pulse width, rise and fall time, peaks, trigger levels, totalize, gate time, input settings, auto or fixed trigger levels and the 100-gate average. The driver undoes the presets that rise/fall and other modes leave behind (COM A, auto trigger) and says when an average would take longer than the GPIB adapter waits.
  • HP 5384A / 5385A frequency counter (hp.5384a), from the Operating and Service Manual and tried on a real 5384A with an FY6900: frequency on channels A and B, period A, the 10 MHz self-check, gate time, x20 attenuator, 100 kHz filter, manual level, display text and error numbers.
  • Prologix / AR488: read_end=lf (and read_to_line_end() for drivers) ends reads at the line feed instead of EOI, for instruments that never send EOI. The AR488 waits for EOI while ++eoi is on, so this mode switches it off.
  • HP 53131A / 53132A counter, tried on a real 53131A with an FY6900: set_trigger_level and set_trigger_slope now take effect. Every measurement starts with :CONFigure, which set them back to auto and rising, so before they were ignored. After a reading with no signal, the next measurement no longer fails with -230,"Data corrupt or stale". measure_phase is described correctly as channel 1 relative to channel 2. The help says where auto trigger stops working (below 100 Hz) and that totalize needs a set level. The device is listed as 53131A / 53132A; the two take the same commands.
  • The update check now asks GitHub at every start instead of at most once a day. Switch it off in Settings → General as before.
  • Agilent 34970A, checked again against the User's Guide: open_channel and open_all refuse the RF cards (34905A/6A), which have no OPEN; measurements say so when the internal multimeter is fitted but switched off; display text counts a comma, period or semicolon as sharing the place before it. The simulator follows the instrument's relay rules (one closed relay per multiplexer while scanning, one on a 34908A, one per RF bank) and skips the missing channels inside a range, so open_all on a 34904A works there too. docs/INSTRUMENTS.md has the RS-232 factory settings and the corrected source pages.
  • Agilent 34970A measurement options and monitor: the measure commands and scan take range, resolution, nplc and (frequency, period) aperture; before, every reading was autorange at 1 PLC. start_monitor, read_monitor and stop_monitor read one channel over and over with the instrument's Monitor function, without a new scan and relay switching for each reading. After each measurement the scan list is emptied again, so multiplexers can close several relays. From feedback by a tester on real hardware.

0.2.0 – Reference meters: Keysight 3458A and 34420A, Fluke 8508A, Wavetek 1281 and 4950

  • Keysight 34420A nanovolt / micro-ohm meter (hp.34420a): both voltage channels, ratio and difference, 2- and 4-wire ohms with offset compensation, low power and voltage limit, RTD, thermistor and thermocouple temperature, over GPIB or RS-232.
  • Fluke 8508A reference multimeter (fluke.8508a): DC and AC volts and current, ohms, True Ohms, High Voltage Ohms, PRT temperature, front, rear and ratio inputs; waits as long as the manual's read rates and settling delays say.
  • Wavetek 1281 selfcal multimeter (wavetek.1281): the same kind of functions for the 1281's options, checked with *OPT? before use; rear channels A and B.
  • Wavetek 4950 multifunction transfer standard (wavetek.4950): measurements at nominal points with their bands, refused with the reason when outside them; the quality and sample size of each measurement and the warm-up time left.
  • All four are written from and checked against their manuals. Where a manual disagrees with itself, the driver uses only what all of it agrees on, and docs/INSTRUMENTS.md lists the points. Not tried on hardware yet.
  • Serial connections take dsrdtr=1 for DTR/DSR handshake.
  • Keysight 3458A multimeter (hp.3458a, also the HP and Agilent 3458A): DC, AC and AC+DC volts and current, 2- and 4-wire resistance, frequency and period, with integration time, digits, autozero, offset compensation, input impedance, AC method, series of readings, temperature and autocal. Waits as long as a slow reading needs, settling delays and offset compensation included, also through a Prologix adapter. Written from and checked against the 3458A user's guide; not tried on hardware yet.
  • Math, Compare and And / or nodes open their operator list as a normal menu. The list used to be drawn into the canvas, where + - * / could show up garbled or not at all.
  • Dark theme: check boxes (such as output on for the Chroma 6404 or input on for the KP184) and entry fields have a visible edge. Before, they were drawn nearly black on the dark window and could not be told apart from it.

0.1.8 – Project management, VISA in the download and steadier GPIB

  • Managing projects from the welcome page: the recent projects list shows when each project was saved last and with which Benchloom version. A click selects a project, a double click or Enter opens it, and buttons and a right-click menu pin it to the top, duplicate it (without its past runs), rename it, move its folder, delete it to the recycle bin or show it in Explorer. Saving a project notes the Benchloom version in its project file.
  • GPIB through a Prologix or AR488 adapter sets the adapter's read timeout from the connection's timeout, when connecting and whenever a driver changes it. The adapter keeps whatever read timeout the last program set, so a short one left behind made slow measurements, such as the Chroma 6404's (about 0.9 s), time out. Connecting also waits for the adapter to answer, so an Arduino Nano that restarts when the port opens works, and a missing adapter is reported as such.
  • Chroma 6404 tried over GPIB as well as RS-232.
  • VISA in the Windows download: visa:// connections, for example visa://GPIB0::9::INSTR through an NI or Keysight GPIB adapter, now work in the packaged program too, not only after pip install "benchloom[visa]". A vendor VISA such as NI-VISA is used when installed; otherwise PyVISA's own backend, which covers serial and network instruments. The build's self-test checks it.
  • HP, Agilent and Keysight in one group: the Add device dialog lists devices of the company that was HP, then Agilent, then Keysight under one manufacturer, HP / Agilent / Keysight, whichever of the names a plugin gives; the device's details still show that name (the 34970A says Agilent).

0.1.7 – Device picker, DT-4000ZC multimeter and Agilent 34970A

  • Finding a device type: the Add device dialog lists the device types as a tree, grouped by manufacturer, with the plugins that come with Benchloom under Official and installed ones under Third party. A search box finds a type by name, id, manufacturer or description (HP 3478), and a filter shows one kind only, such as multimeters or power supplies. A panel beside the tree describes the type picked, as the plugin manager does: kind, manufacturer, plugin, connections, settings and description.
  • Plugins: a [[device]] entry can give its kind (category = "dmm") and manufacturer, which [plugin] can also set for all its devices. Both are optional; the built-in plugins have them, and plugins without them are listed under their name, as Other. See docs/writing-plugins.md.
  • Digitek DT-4000ZC multimeter (fs9721.dt4000zc): reads the display of this handheld meter over its optical serial cable, as a number in the base unit or as text, and checks that the dial is on the function asked for: volts, amps, ohms, continuity, diode, capacitance, frequency, duty cycle and temperature. The decoder handles the FS9721 chip that many cheap meters use. With a USB serial adapter the cable may need a 3.3 kΩ resistor (see docs/INSTRUMENTS.md).
  • Agilent 34970A data acquisition / switch unit (hp.34970a): finds the plug-in cards when it connects and checks every channel against them, so a wrong channel fails with a message naming the card. Measures DC/AC volts, 2- and 4-wire ohms, DC/AC current, frequency, period and temperature (thermocouple, RTD, thermistor) on multiplexer channels, scans a channel list at once (scan("dc_voltage", "101:110")), switches relays on multiplexer, actuator, matrix and RF cards, and drives the DACs, digital ports and totalizer of a 34907A. Cards go back to their power-on state when a test ends. Tried on a real mainframe without cards, over GPIB through an AR488; the card functions are tested against the simulator.
  • Serial ports: drivers can set the DTR and RTS lines (set_lines), for cables powered from them. Changing the port settings while open works around the CH340 driver refusing them, as opening already did.

0.1.6 – Update message and a Python 3.11 crash fix

  • Update message: when a newer version is out, a bar under the toolbar says so, with its release page one click away (the download, or the pip command to update). Benchloom asks GitHub at most once a day at start; switch it off in Settings, or check any time with About → Check for updates. Skip this version keeps it quiet until the next one.
  • No more sudden crash on Python 3.11: a reference counting bug in PySide6 slowly used up Python's count of None, until Python aborted with "none_dealloc" (seen in the tests on Linux, after many windows and theme switches; a long session in the app could hit it too). Benchloom now works around it on Python 3.11; 3.12 and newer were never affected.

0.1.5 – Safer stops, run history and Lua autocomplete

  • Stop during a slow device command switches the devices off again. A command still running more than about 2 s after the stop timeout made the app end the run before the devices were shut down, leaving outputs on. The run now answers Stop at once, and the app ends only a run that does not; and a run whose script ended just as it was finished without it no longer gets reported as "ended unexpectedly".
  • A failed shutdown is no longer hidden: run.json records for each device whether it was shut down ("shutdown": {"psu": "done"}) or not ("failed: …"). The report shows a warning above the verdict, the app repeats it after the verdict in the console and the status bar, and benchloom run exits with 1.
  • Safer ends of a run: a device whose connect() fails gets its close() called before its port is closed; a failing on_shutdown callback no longer keeps the devices from being shut down; and a run ended by a fault in Benchloom itself is recorded as error, never as ok.
  • No nan or infinity to a device: a command argument that is nan (from 0/0) or infinite stops the test with an error instead of being sent. A check never passes with such a value, also with one limit only.
  • list arguments are checked: list[float] checks each item, with the Param's limits applying to every item.
  • benchloom describe --project loads a project's own plugins only when the project was allowed already, or with --trust-plugins, as for benchloom run. Before, it imported their Python code without asking.
  • Visual tests check their wires: a wire that ends at a pin its node no longer has (for example after a plugin renamed a command's argument) stops the run with an error at that node, instead of being skipped: the input took its typed-in value, or the run silently ended there. Delete the node and add it again; the hidden wire goes with it. Two wires into one input, two run-order wires out of one pin and wires of unknown kind are errors too, and a test saved by a newer Benchloom is refused with a clear message.
  • Selected wires are easy to see: a selected wire gets a wide halo. A selected value wire used to change only from blue to the (also blue) highlight colour, so there was no telling it was selected.
  • log{ time_s = ... } stops the test with an error: time_s is the time Benchloom logs itself, and a script's own value used to replace it.
  • benchloom run exits with 1 when a check failed, so scripts and CI see a FAIL; it also prints the verdict. Before, only errors and stops gave 1.
  • Dialogs (devices, settings, plugins, new project, About) are deleted after use instead of staying in memory until the window closes.
  • Column order: columns = [...] under [plot] in benchloom.toml sets the order of the logged columns in data.csv, the plot, the Data tab and the report. A visual test keeps the order of its Log row node by itself.
  • Run history: a Runs tab next to the console lists the project's runs with their verdict, rows, checks and duration. Open a run's report, show its data and console again, compare it with the current run (its curves are drawn dashed, also while the next run is measured), or move it to the recycle bin.
  • Lua editor: autocomplete for the project's devices, their commands (with arguments and units after psu:), the front panel's widgets (after panel.) and Benchloom's functions; Ctrl+Space opens it. While a test runs, the line it is at is marked green.

0.1.4 – Data table, panel widgets, plugin registry and docs

  • Data table: a Data tab next to the plot lists every logged row as it arrives. It follows the newest row unless you scroll up, and Ctrl+C copies the selected cells with full precision, ready to paste into a spreadsheet.
  • Running node: while a visual test runs, a green outline shows the node it is at, so a long loop or a slow instrument is easy to follow.
  • Front panel: a gauge and a table widget, and charts with several curves (panel.trend = { V = v, I = i }), their X value taken from the table (for example a frequency) and a log X axis. Renaming a widget renames the nodes that use it, and offers to change the script.
  • Plugin registry: Plugins → Browse online lists plugins others wrote (registry/index.json in this repository, added to by pull request) and installs or updates them; a download whose SHA-256 differs from the list is refused. On the command line: benchloom plugins search, benchloom plugins install <id>, and benchloom plugins entry to make the entry for your own.
  • Documentation site at https://criscrafter.github.io/benchloom/, built from docs/: getting started, projects and resources, the Lua reference, visual tests, the front panel, the command line, instruments, writing and sharing plugins, and safety.
  • The front panel's widget settings dialog no longer stays behind in memory after each edit.
  • Plugins in a project need your consent: a project's own plugins/ folder is Python code, and it used to be loaded as soon as the project was opened. Now the app asks first, per project, and benchloom run needs --trust-plugins once. Until then such a plugin does not replace a built-in one either.
  • Stopping switches outputs off more reliably: when a script does not stop within 3 s (a loop that never checks, a slow command), the run now shuts its devices down without the script instead of being killed with the outputs on. Shutting down is no longer cut short after 3 s, and closing the window while a test runs waits for it too.
  • The app no longer shows the commands of another project's plugin after switching between projects that carry a plugin with the same id.
  • On PyPI: pip install "benchloom[gui,usb]" installs Benchloom; every release is uploaded there automatically.

0.1.2 – Lua sandbox

  • Lua sandbox: scripts no longer reach files, other programs or other code on the computer (io, os.execute and the rest of os except time, clock, date and difftime, require, dofile, loadfile, package, debug, collectgarbage, string.dump; load takes text only), and use at most 1 GB of memory. Scripts that read or wrote files themselves need changing.
  • CONTRIBUTING: the build command for the Windows download was garbled.

0.1.1 – Windows download

  • Windows download: Benchloom-0.1.1-windows-x64.zip on the releases page. Unzip and start Benchloom.exe; no Python needed. benchloom-cli.exe is the command line.
  • The app has an About dialog and benchloom --version with the licence and warranty notices.
  • Waveform PNGs also work in the packaged app, and show text when Qt runs offscreen on Windows.
  • CI runs on Windows and Linux; the Linux test run no longer fails after the tests have passed (a PySide6 shutdown fault).

0.1.0 – first public release

Benchloom was developed as "Patchbay" until this release. Projects with a patchbay.toml, the ~/.patchbay folder and the desktop app's settings from that time keep working.

  • Tests as Lua scripts or as visual graphs (nodes and wires, compiled to Lua), run in a separate process that can always be stopped.
  • Desktop app: project wizard with templates, device manager with serial port list and connection test, Lua editor, node editor (undo/redo, copy/paste), live plot (right-hand scale, log X, column choice), front panel with controls and indicators, waveform viewer, plugin manager, settings, light and dark theme.
  • Run folders with data.csv, console log, run.json, a copy of the script, pass/fail checks (check), saved waveforms (save_waveform, as CSV, SVG and PNG) and report.html with the verdict, data chart and waveforms.
  • Instruments: Kunkin KP184 electronic load (RS-232 and RS-485), Chroma 6404 AC source, Hantek DSO5102P oscilloscope (USB, including gain/phase measurement), Feeltech FY6900 function generator (signal, modulation, sweep, counter), HP 6655A, HP 3478A and HP 53131A (GPIB, from their manuals), a generic SCPI driver and an Arduino line protocol. Each has a simulator.
  • Connections: serial, TCP, Prologix and AR488 GPIB adapters, VISA, USB bulk and USBTMC (including the xyphro UsbGpib adapter) without a vendor VISA.
  • Templates: a power supply example and a Bode plot (FY6900 and DSO5102P) that finds the -3 dB points and can check them against limits.
  • Plugins: installable from a folder or a .zip, can be switched off, benchloom plugins on the command line.