Skip to content
hw.dev
hw.dev/signal/wavecraft-usb-real-hardware-capture-tests-2026
SignalWaveCraft

WaveCraft Runs Three Capture Modes Against Real USB Instruments

WaveCraft adds opt-in tests that exercise buffered and continuous capture paths on physical USB instruments.

Thesis connection

Repeatable tests on physical instruments turn driver behavior that was checked by hand into evidence a maintainer can rerun after each change.

#testing#embedded#verification#software
Read Original

WaveCraft added opt-in tests for three capture paths on physical DSLogic and DSCope USB instruments. One test demands every requested sample from buffered logic capture. Two others run streaming captures until the test stops them, then check that the software cancels the queued USB reads cleanly.

The harness prepares each device with its field-programmable gate array (FPGA) image, serializes access behind one lock, and drives the same capture coordinator used by the application. That is more useful than a driver mock for the failure being tested: stale queued reads and stop behavior depend on the USB stack, device firmware, and timing between them. The author ran the tests before and after a queued-read bookkeeping change on the same instruments.

The boundary is documented too. Automatic calibration still stops at an offset limit on the test rig, so this batch doesn't claim to validate it. Teams maintaining instrument drivers should copy that honesty: make bench tests selectable by device, record the unsupported setup, and keep stop-and-cancel behavior in the basic qualification set.