Skip to content
/ hp8903 Public

Scripts to remote control the HP8903A and HP8903B audio analyser via GPIB using a Prologix Controller

Notifications You must be signed in to change notification settings

oxytu/hp8903

Repository files navigation

HP8903 audio analyser via Prologix GPIB

The HP8903 is a remote controllable audio analyser. The device is old but thus available for sane prices. The scripts mentioned here currently allow you to obtain a frequency/level measurement and create a plot like the following.

Example image

The scripts are not yet cleaned up and this is the first version that is more of a proof-of-concept. I will try to add other measurement types.

Features

Integrated webserver to do remote measurements (very basic but functional UI) - allowing CSV download.

Example image

Do the measurement witha Prologix GPIB interface, configured to provide the connection with a serial port.

Depending on the condition of your device, it may be sensible to do a loop-back measurement and use this as a calibration reference while plotting. See option --calibration-file to use this feature.

Installation

You need Python 3, pyserial, pyyaml, matplotlib, argparse, math and csv libraries.

pip3 install pyserial pyyaml matplotlib argparse math csv pyserial cherrypy fasteners

Configuration

measure.py is statically configured through config.yml (Serial port, BAUD rate). Measurement configuration is done via command line arguments.

graph.py has no internal configuration, customize it using command line arguments.

webserver.py can simply be called and will start a publicly available webserver on Port 8080. This component uses the other two python files, so be sure that config.yml contains sensible settings.

The parameter --help will give you details about the command line arguments.

About

Scripts to remote control the HP8903A and HP8903B audio analyser via GPIB using a Prologix Controller

Resources

Stars

Watchers

Forks

Packages

No packages published