fair-acc / gr-digitizers

GNU General Public License v3.0
3 stars 3 forks source link

gr-digitizers

gr-digitizers is a collection of gnuradio blocks for signal processing.

Building and install

In a nutshell we have three main dependencies:

GNU Radio and ROOT could be compiled/linked statically and required libraries could be in principle copied and deployed together with the test deploy unit. The only problem is PicoScope library (well libraries) which needs to be installed into the /opt/picoscope directory.

Download and install PicoScope drivers from here: https://www.picotech.com/downloads/linux.

Afterwards, you can build gr-digitizers like this:

$ mkdir gr-digitizers/build
$ cd gr-digitizers/build
$ cmake .. -DENABLE_GR_LOG=1 \
           -DENABLE_STATIC_LIBS=ON
$ make
$ ./lib/test_digitizers_test.sh # runs unit tests
$ make install

By default only unit tests wihtout any HW dependencies are executed. In order to execute PicoScope 3000a related tests execute the below command (from you build directory):

$ lib/test-digitizers --enable-ps3000a-tests

Note, HW related tests cannot be run in parallel.

Usage

If you installed into a folder different from /opt/gnuradio, you will need to add the location of the new blocks into your ~/.gnuradio/config.conf

$ cat ~/.gnuradio/config.conf 
[grc]
local_blocks_path=/path/to/gr-digitizer/install/location/share/gnuradio/grc/blocks

Check this directory for a wide range of examples.