- Bernhard Lang (bernhard.lang@unige.ch)
- Eric Studemann (eric.studemann@unige.ch)
- avantes: control of an Avantes AvaSpec ULS2048CL EVO spectrometer
- PyMoDAQ 5.0.1
- tested: Debian Linux 11/12, Windows 11
- Drivers / binaries needed from Avantes
- Linux: libavs.so (in libavs_..._amd64.deb)
- Windows: avaspecx64.dll (AvaspecX64DLL_...Setup_64bit.exe)
- MacOS: libavs.dylib
- any: avaspec.py
Avantes publishes a Debian installation package libavs_..._amd64.deb. Run
sudo pdkg -i libavs_..._amd64.deb
to install its contents. Depending on the configuration of the Linux brand you're using, the file may end up in a directory where the dynamic linker doesn't find it. If that happens to you, you may also install the dynamic library by hand by copying it to a location where the dynamic linker will find it on your system. On Debian you may chose /usr/local/lib/avantes as "home" for the library. Copy the file libavs.so.whatever.version.number to that directory and run inside that directory
sudo ln -s libavs.so.whatever.version.number libavs.so
Create (using sudo and your favorite editor) the file
/etc/udev/rules.d/90-avantes.rules
and set its content to
SUBSYSTEM=="usb", ATTRS{idVendor}=="1992", ATTRS{idProduct}=="0669", MODE="0666"Connect the spectrometer and run
sudo udevadm control --reload-rules sudo udevadm trigger
- Execute AvaspecX64DLL_...Setup_64bit.exe. The installer will ask you for a password which you have to get from the AvaSpec Library Manual which you should have received from Avantes together with the device.
- The setup program will install and configure the device driver. Connect the device and check the device manager for an entry named "Avantes Spectrometers".
Inside a shell (i.e. Miniforge Prompt on Windows) run
pip install pymodaq_plugins_avantes
Start the dashboard and create a preset using the avantes plugin.