|
From: | Tom Rondeau |
Subject: | Re: [Discuss-gnuradio] how to use the gnuradio block with c programing |
Date: | Tue, 19 Apr 2016 09:51:39 -0400 |
--Ekkothank youbecause my own data is not ok for connect.the function connect will not work here,so i want to know how can i use gnuradio block just like a function not with the connect,and i want to multiple the output of the signal source of gnuradio with my own data (for example the data in an array);these two examples is all use the block in gnuradio,just like the audio sink,uhd sink.hi Tomi read the examples in gr-audio/examples/c++, and the examples in gr-uhd/examples/c++;
2016-04-18 21:18 GMT+08:00 Tom Rondeau <address@hidden>:On Mon, Apr 18, 2016 at 3:53 AM, Ekko <address@hidden> 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--EkkoEkko,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
[Prev in Thread] | Current Thread | [Next in Thread] |