[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Using usrp_sink in own C++ OOT block
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Using usrp_sink in own C++ OOT block |
Date: |
Tue, 11 Apr 2017 15:22:49 -0700 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Take a look at the SWIG files in gr-uhd, and also take a look at
gr-ettus on how to achieve this.
-- M
On Fri, Apr 07, 2017 at 07:54:58AM +0000, address@hidden wrote:
> Hi all,
>
>
>
> I’m struggling using the gnuradio usrp_sink in my own OOT block:
>
> · I added “UHD” to the gr required components in the Cmake lists
> file of my OOT block.
>
> · I have a shared pointer to the usrp sink as a private member
>
> · In the constructor of my OOT block I want to initialize the
> device. However I’m stuck with the stream_args_t struct.
>
> o E.g. ::uhd::stream_args_t MyStreamArgs; à this works without
> compilation and linker error but when I start my flowgraph with just that,
> I get an attribute error in GRC which indicates that something during
> linking / swig failed.
>
>
>
> Does anyone have an idea? Or a simple example how to use the usrp_sink or
> usrp_source in its own block. The main reason for doing that is that I
> have purely message based blocks and I want to wrap the usrp_sink in such
> a block for my purposes.
>
>
>
> Regards,
>
> Emanuel
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
signature.asc
Description: PGP signature