discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to instantiate uhd usrp sink in C++


From: Josh Blum
Subject: Re: [Discuss-gnuradio] How to instantiate uhd usrp sink in C++
Date: Fri, 13 May 2011 10:42:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10


On 05/13/2011 05:56 AM, address@hidden wrote:
> Perhaps my question was not too clear. I am looking for an example that uses
> gr-uhd in C++. I may be wrong but uhd/host/examples contain standalone UHD
> examples that do not use Gnuradio.
> 

Include gr_uhd_usrp_source.h or gr_uhd_usrp_sink.h, call the factory
function uhd_make_usrp_sink or uhd_make_usrp_source, and call functions
on that object.

http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/include

-Josh

> Thanks for your response. I am a new user and I appreciate your time
> greatly.
> 
> R
> 
> On 13 May 2011 04:05,  wrote:
> 
>>  On 05/13/2011 03:43 AM,  wrote:
>>
>> Hi,
>>
>>  Can someone share an example of how to instantiate a uhd_usrp_sink in
>> C++? Specifically
>>
>>  1. What header file should I include?
>> 2. How do I declare the uhd sptr?
>> 3. What parameters should I pass to the make_uhd function?
>>
>>  (pls. forgive me for forgetting the exact names of classes and functions)
>>
>>  Thanks.
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing 
>> address@hidden://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>  The UHD source code includes examples:
>>
>> ...uhd/host/examples
>>
>>
>>
>> --
>> Principal Investigator
>> Shirleys Bay Radio Astronomy Consortiumhttp://www.sbrac.org
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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