Python-based EPICS PVAccess server for various magnetometers. It is based on p4p and epicsdev packages and can run standalone on Linux, macOS, and Windows platforms.
Communicates via PyVISA (RS-232 settings: 9600 baud, 7 data bits, odd parity, 1 stop bit).
pip install epicsdev_magnetometer
# connecting with USB-RS232 adapter
python -m epicsdev_magnetometer.lakeshore -p ASRL/dev/ttyUSB0::INSTR
# or connecting through DIGI:
python -m epicsdev_magnetometer.lakeshore -p TCPIP::130.199.85.154::2001::SOCKET
Use -h for the full list of options.