Code: Select all
# First, we must specify the FPGA image
cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
# Link libraries to set gain
export LD_LIBRARY_PATH=/opt/redpitaya/lib
# Tell the API that gain is set for HV (+/- 20V Jumpers)
/Examples/C/APIGainSet
Code: Select all
$ /usr/local/myscript.sh: line 14: /Examples/C/APIGainSet: Permission denied
1. Other than setting the physical jumpers to HV, is this API step necessary?
2. How does one give permission access to set gain?