discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] how to use the gnuradio block with c programing


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] how to use the gnuradio block with c programing
Date: Mon, 18 Apr 2016 09:18:01 -0400

On Mon, Apr 18, 2016 at 3:53 AM, Ekko <address@hidden> wrote:
hello all
i want to know how to write a c program with the lib of gnuradio.
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.
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]