Discussions about active development projects
#3619 by rudyhuezo
Wed Dec 02, 2015 9:57 pm
Dear Grozomah (and everyone on this post),

I have tried to use your code but have been unsuccessful in getting output that makes sense. The only changes that I have made to your code is changing the trigger_voltage variable. Currently I am testing the code by using a function generator but the code is "collecting data" at seemingly wrong values. For example, I set trigger_voltage to 1V and the code triggers at some value less than 1V. Could you also explain what you mean by "[1V...~600 RP units]"?

Sorry for my lack of understanding and probably vague question but I am a complete novice when it comes to the Red Pitaya.
#7362 by Amraam
Fri Mar 17, 2017 11:38 pm
I want to thank Grozomah and trollhassel for their source code.
They work very well for my application.
Last edited by Amraam on Wed Mar 22, 2017 3:59 pm, edited 3 times in total.
#7375 by Amraam
Mon Mar 20, 2017 5:09 pm
Hi,

after the successful test of posted codes, my next attempt is to add also decimation 2 and to transfer data as uint16 instead of uint32.
#8169 by mbr99
Wed Nov 08, 2017 3:44 pm
:) i bought it ! Very sexy little machine ! ... however ,

... attempting to discover this "triggered high speed acquisition" program, the compilation phase refused to give me an executable and i wonder why : this is the error message copied from the console...

/RedPitaya/Examples/C$ make trigger
cc -g -std=gnu99 -Wall -Werror -I/opt/redpitaya/include -L/opt/redpitaya/lib trigger.c -lm -lpthread -lrp -o trigger
/tmp/ccyoGWdU.o: In function `main':
/RedPitaya/Examples/C/trigger.c:31: undefined reference to `osc_fpga_init'
/RedPitaya/Examples/C/trigger.c:42: undefined reference to `osc_fpga_set_trigger_delay'
/RedPitaya/Examples/C/trigger.c:43: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:43: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:46: undefined reference to `osc_fpga_reset'
/RedPitaya/Examples/C/trigger.c:53: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:53: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:53: undefined reference to `osc_fpga_cnv_v_to_cnt'
/RedPitaya/Examples/C/trigger.c:61: undefined reference to `osc_fpga_arm_trigger'
/RedPitaya/Examples/C/trigger.c:62: undefined reference to `osc_fpga_set_trigger'
/RedPitaya/Examples/C/trigger.c:76: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:76: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:80: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:80: undefined reference to `g_osc_fpga_reg_mem'
/RedPitaya/Examples/C/trigger.c:85: undefined reference to `g_osc_fpga_reg_mem'
/tmp/ccyoGWdU.o:/RedPitaya/Examples/C/trigger.c:85: more undefined references to `g_osc_fpga_reg_mem' follow
/tmp/ccyoGWdU.o: In function `main':
/RedPitaya/Examples/C/trigger.c:87: undefined reference to `osc_fpga_get_sig_ptr'
/RedPitaya/Examples/C/trigger.c:115: undefined reference to `osc_fpga_exit'
collect2: error: ld returned 1 exit status
make: *** [trigger] Error 1
<builtin>: recipe for target 'trigger' failed


i had everything cloned from the git repository and this should have worked ?... apparently some links have been lost before the compilation.
Question : what should i have done?
Should i import some other things into the examples directory before the compilation?
Is there a specific FPGA image i should have setup before compiling?...

Did anybody experienced this before me? can you help me?

kindest regards,

mbr

Who is online

Users browsing this forum: Bing [Bot] and 1 guest