I want to exchange data between adjacent blocks which are already connected
through the GUI, without ask to the user to write  additional code.
So my approach would be: the upper block send down its name(through tags)
and the lower block configure the communication, so I thought to take
advantage from message passing.
If I won't be able to use this approach, I will use some memory shared
mechanism.

Just a question,in order to use the gr::flowgraph:connect(),I need to get
the object flowgraph from the XML file situated in GRC,isn't it?

Il giorno gio 30 apr 2015 alle ore 13:48 Mostafa Alizadeh <
m.alizade...@gmail.com> ha scritto:

> excuse me,
>
> I'm seeing the new API 3.7.7 of GNURadio which is changed. The "connect"
> is a member of gr::flowgraph which connects both blocks' ports and message
> ports:
>
>
> http://gnuradio.org/doc/doxygen/classgr_1_1flowgraph.html#af8678658129a819673a59555d030aaac
>
> Best,
>
> On Thu, Apr 30, 2015 at 4:15 PM, Mostafa Alizadeh <m.alizade...@gmail.com>
> wrote:
>
>> Hi Marco,
>>
>> The top_block class has a member named: connect. You can use it in the
>> main() to connect different blocks. However, if you want to dis/connect
>> blocks within C++ blocks, you must pass top_block pointer to the class in
>> some fashion. Once I did and I got errors because I didn't have accessed to
>> the "connect" from within the block.
>>
>> I prefer to change your topology to refuse the need you've mentioned.
>> Otherwise describe your problem with more details.
>>
>>
>> Best,
>> Mostafa
>>
>>
>>
>> On Thu, Apr 30, 2015 at 3:43 PM, marco Ribero <spam.marco.s...@gmail.com>
>> wrote:
>>
>>> Hi all,
>>> I have another question. How can I connect the input and output port of
>>> different blocks,from inside a C++ block? In the documentation I've only
>>> seen the msg_connect() for python
>>>
>>> Thanks,
>>> marco
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>>
>>
>>
>> --
>> ***********************************************************
>> Department of Electrical Engineering
>> Aboureyhan Building
>> MMWCL LAB
>> Amirkabir University Of Technology
>> Tehran
>> IRAN
>> Tel: +98 (919) 158-7730
>> LAB: http://ele.aut.ac.ir/~mmwcl/?page_id=411
>> Homepage: http://ele.aut.ac.ir/~alizadeh/
>> ***********************************************************
>>
>
>
>
> --
> ***********************************************************
> Department of Electrical Engineering
> Aboureyhan Building
> MMWCL LAB
> Amirkabir University Of Technology
> Tehran
> IRAN
> Tel: +98 (919) 158-7730
> LAB: http://ele.aut.ac.ir/~mmwcl/?page_id=411
> Homepage: http://ele.aut.ac.ir/~alizadeh/
> ***********************************************************
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to