On Mon, Apr 18, 2016 at 3:53 AM, Ekko <chai18740449846@gmail.com> wrote:
for example i want to write a c program,to add a 15HZ sin signal with a 135HZ sin signal,then send from the usrp.hello alli want to know how to write a c program with the lib of gnuradio.i know how to send the data to the usrp.but i don't know how to use the signal source and the add fnuction of gnuradio in c program,just like use the uhd api as a fnuction.i will not want to write a oot block,i just want to write a *.c file to accomplish this work.but i don't how to start.is there some demo in gnuradio about how to use the gnuradio with C?just like the tx_samples_c.c in uhd.or something others to teel me how to solve this .thank you--Ekko
Ekko,
No, you cannot write a C program. GNU Radio is all written in C++, so you will have to do this with a C++ program.
You can find examples in the source code under gr-audio/examples/c++ and gr-uhd/examples/c++.
Tom
No comments:
Post a Comment