A cross platform golang CLI to control the Owon HDS200 series oscilloscope with SCPI commands, with also a minimal web frontend.
Prerequisites:
- libusb (https://libusb.info/)
- golang (https://go.dev/dl/)
Then
go install github.com/frnckdlprt/hdsctl/cmd/hdsctl@latest
- Run SCPI commands with for example
hdsctl ":HOR:SCAL 50ns;CH1:SCAL 1.00V"
orhdsctl :DATa:WAVe:SCReen:HEAD? | jq
- Run a minimal web interface with
hdsctl serve
, accessible onhttp://localhost:8080
- the web UI has a very low refresh rate, about once per second (it could be pushed a bit higher, but then very soon the scope itself becomes less responsive)
- may require root privilege, alternatively on fedora I have been using
sudo chown $USER:$USER /dev/bus/usb/$(lsusb | grep PDS6062T | awk '{print $2 "/" substr($4,1,length($4)-1)}')
to avoid permission issues