APIGainSet: Permission denied
Posted: Fri Apr 16, 2021 5:06 pm
I have a shell script that sets up my pulse aquisition C program.
Everything works fine until the last line, which spits this out in terminal
Two questions arise,
1. Other than setting the physical jumpers to HV, is this API step necessary?
2. How does one give permission access to set gain?
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?