[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gnuradio flowgraph mechanism
From: |
Martin Dvh |
Subject: |
Re: [Discuss-gnuradio] gnuradio flowgraph mechanism |
Date: |
Tue, 14 Feb 2006 09:55:42 +0100 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20051002) |
Ges wrote:
> Hi Eric,
>
> I am trying to rewrite the flowgraph mechanism written in Python into
> C++ so that I can run the GNU Radio modules written in C++ as such in
> the Click software router. But, as I started to work on it, i found
> that converting the code written in Python into C++ is not such a
> trivial exercise. So right now, all I want is to have a very simple
> flowgraph , so that I can try it with Click and run a graph of gnuradio
> modules.
>
> Firstly, do you think this is the best way to do it? Implement the
> flowgraph in C++ and use that to run the gnu radio modules. Secondly, do
> you have any advise on implementing this flowgraph in C++? There is
> obviously a lot of functionality that I can avoid just to get a basic
> mechanism to run in Click.
>
> In short, all I would need to do is assign all the buffers for each
> block, and create the connections, and then call the run() function of
> the gr_single_threaded_scheduler. Am I right about this or am I missing
> something very crucial? As far as I understand the code, right now I can
> avoid the graph partition and the sorting mechansim as long as I use a
> very straight forward gnuradio module, which does not make any
> assumptions. I also feel that I can avoid a large part of the
> basic_flowgraph mechanism?
I needed to test some gnuradio blocks a while ago in C++ (under windows, before
the windows port was working)
What I did then was even more crude then you suggest.
I just allocated buffers and didn't create any flow-graph.
I just called the (general_)work method of the blocks myself in a loop, using
the output buffer from one block as an input to the next and
keeping track of the pointers.
Of course you miss a lot of the nice features this way, but it is a quick way
to test blocks in a C++ framework.
Greetings,
Martin
>
> Thanks
>
> Regards,
> ~Gesly
>
> ------------------------------------------------------------------------
> Yahoo! Mail
> Use Photomail
> <http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com>
> to share photos without annoying attachments.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio