A python library to control the AD9959 DDS Evaluation Board. This library is based on the MIT Labview drivers and the official documentation of the AD9959.
To install the package from source simply do
git clone https://github.com/Schlabonski/evalcontrol`
cd evalcontrol
python3 setup.py install
Requirements: This library works on top of pyusb
which uses libusb
so these should both be installed as well.
To install liusb
on windows, see instructions below.
If you want to use the library, i.e. access the evaluation board, without root rights run the following steps first.
sudo useradd -G plugdev USERNAME
sudo vim /etc/udev/rules.d/10-ad9959.rules
and adding the following line
ATTRS{idProduct}=="PRODUCT_ID", ATTRS{idVendor}=="VENDOR_ID", MODE="666", GROUP="plugdev"
where PRODUCT_ID and VENDOR_ID are replaced by the respective IDs (mind the quotes).sudo udevadm trigger
To use the package within artiq
just activate the corresponding virtual environment and run
python3 setup.py install
When accessing the device in the preparation phase of an experiment, use the AD9959.reset()
method to prevent USBErrors due to timeout.
To use this package on windows, you need to install a port of the libusb driver.
libusb0.dll
to C:\Windows\System32libusb0.sys
to C:\Windows\System32\driversinstall-filter-win
utility