APIGainSet: Permission denied

Applications, development tools, FPGA, C, WEB
Post Reply
radiationman
Posts: 9
Joined: Tue Mar 16, 2021 4:53 pm

APIGainSet: Permission denied

Post by radiationman » Fri Apr 16, 2021 5:06 pm

I have a shell script that sets up my pulse aquisition C program.

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
Everything works fine until the last line, which spits this out in terminal

Code: Select all

$ /usr/local/myscript.sh: line 14: /Examples/C/APIGainSet: Permission denied
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?

User avatar
redpitaya
Site Admin
Posts: 880
Joined: Wed Mar 26, 2014 7:04 pm

Re: APIGainSet: Permission denied

Post by redpitaya » Fri Apr 23, 2021 12:03 pm

Is the issue still manifesting after you manually
update the Red Pitaya OS to the latest BETA OS by using this guide:
https://www.youtube.com/watch?v=Qq_YRv2nk3c
?

radiationman
Posts: 9
Joined: Tue Mar 16, 2021 4:53 pm

Re: APIGainSet: Permission denied

Post by radiationman » Fri May 14, 2021 6:05 pm

Issue resolved after giving full file permissions to user.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 31 guests