$ sudo apt install gcc g++ make
$ sudo apt install libusb-1.0-0-dev
$ wget -N https://github.com/mccdaq/uldaq/releases/download/v1.2.0/libuldaq-1.2.0.tar.bz2
$ tar -xvjf libuldaq-1.2.0.tar.bz2
$ cd libuldaq-1.2.0
$ ./configure && make
$ sudo make install
$ cd examples
$ ./AIn
$ pip install -r requirements.txt
First download uldaq-1.2.2.tar.gz
from PyPi following instruction in the "Examples" section: https://pypi.org/project/uldaq/. I have saved it in my local aquabat
repo. The .gitignore
won't push it to github so feel free to do the same!
$ tar -xvf uldaq-1.2.2.tar.gz
$ cd uldaq-1.2.2/examples
$ ./a_in.py
$ python3 src/main.py -f --data-directory ./examples/ -c 4 --sample-rate 50000
$ python3 src/main.py -f --data-directory ./data/ -c 4 --sample-rate 1000
$ python3 src/simple_scan.py --data-directory ./data/ -c 4 --sample-rate 1000