[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] hier_block2 and message_source
From: |
David Li |
Subject: |
[Discuss-gnuradio] hier_block2 and message_source |
Date: |
Tue, 01 Apr 2008 17:30:36 -0700 |
Hi,
I have two classes A and B both derived from hier_block2. A also
contains a message_source. The intention is to connect A with B inside a
top_block:
class A(gr.hier_block2):
def __init__(self):
self._source = gr.message_source()
....
class B(gr.hier_block2):
....
I connect the message_queue (in A) with B in a top_block like:
connect(A._source, B)
run()
The subsequent run() command crashed with:
python: /usr/include/boost/shared_ptr.hpp:253: T*
boost::shared_ptr<T>::operator->() const [with T = gr_basic_block]:
Assertion `px != 0' failed.
Aborted
Did I connect the wrong components?
Thanks.
- David
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] hier_block2 and message_source,
David Li <=