API demos don’t work

Applications, development tools, FPGA, C, WEB
Post Reply
nicolasj
Posts: 2
Joined: Mon Jul 27, 2015 9:45 pm

API demos don’t work

Post by nicolasj » Sat Aug 20, 2016 12:03 pm

Hello,

I try to play with the C API but the two demos (for v1 and v2) don’t work.

For the API v1, I try with the blink example available here:

Code: Select all

# LD_LIBRARY_PATH=/boot/lib/ ./blink
Blinking LED[0]
Runtime error: acq_GetDecimation(&decimationVal) returned "Value out of range." at acq_handler.c:328
Runtime error: acq_GetDecimationFactor(&decimation) returned "Value out of range." at acq_handler.c:91
And for the API v2, I used the test_led.c:

Code: Select all

# LD_LIBRARY_PATH=/boot/lib/ ./test_led 
Blinking LED[0]
Red Pitaya API init failed!
Do you have an idea?

Red Pitaya OS 0.96-76

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: API demos don’t work

Post by Nils Roos » Sat Aug 20, 2016 12:39 pm

Here is a solution for the v1 API.

I am unsure whether the v2 API is ready for public use yet or not. However, to install the uio devices on which it depends, you need to "cd /opt/redpitaya/www/apps/la_pro" and execute "./fpga.sh". After that, you're on your own.

nicolasj
Posts: 2
Joined: Mon Jul 27, 2015 9:45 pm

Re: API demos don’t work

Post by nicolasj » Sat Aug 20, 2016 1:15 pm

Nils Roos wrote:Here is a solution for the v1 API.

I am unsure whether the v2 API is ready for public use yet or not. However, to install the uio devices on which it depends, you need to "cd /opt/redpitaya/www/apps/la_pro" and execute "./fpga.sh". After that, you're on your own.
That works better, thank you.

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 6 guests