Error in hier block with 4 outputs and an async message!

Please see attached simple hier block with 4 complex outputs
and 1 async message output.

Everything compiles but the application does not run giving python
error:

Using Volk machine: sse4_1_64_orc
Traceback (most recent call last):
File “./test_msg.py”, line 67, in
tb = test_msg()
File “./test_msg.py”, line 31, in init
self.test_msg_hier_0 = test_msg_hier()
File “/home/anastas/.grc_gnuradio/test_msg_hier.py”, line 34, in
init
self.connect((self, 0), (self, 0))
File
“/usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py”,
line
75, in connect
self._connect(points[i-1], points[i])
File
“/usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py”,
line
81, in _connect
dst_block.to_basic_block(), dst_port)
File
“/usr/local/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py”,
line 2848, in primitive_connect
return _runtime_swig.hier_block2_sptr_primitive_connect(self, *args)
ValueError: connect: src and destination blocks cannot be the same

Notice that the python file of the hier block indexes outputs as 0,1,2,4
instead of 0,1,2,3

???

Achilleas

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Achilleas,

you’re right, grc omits one of the pad sinks; that is kind of a bug,
but I don’t know if the terminology really fits; as it seems, gnuradio
does not like you to have input and output pads directly connected.

I don’t know if this is only a precaution to avoid loops, or if there
are actual reasons you can’t have this in a hier block.
However, can you make the error go away by inserting copy blocks where
you directly pass through?

Greetings,
Marcus

On 30.01.2014 22:17, Achilleas A. wrote:

“/home/anastas/.grc_gnuradio/test_msg_hier.py”, line 34, in
init self.connect((self, 0), (self, 0)) File
“/usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py”,
line 75, in connect self._connect(points[i-1], points[i]) File
“/usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py”,
line 81, in _connect dst_block.to_basic_block(), dst_port) File
“/usr/local/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py”,

line 2848, in primitive_connect

_______________________________________________ Discuss-gnuradio
mailing list [email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS6tcRAAoJEAFxB7BbsDrLpBsH/0BmBlZgg7hLMcqzfrxpzbkh
5ASQAwWdA6iIaqwa55aVxXzJl3nn5mAixCk0OctBvIb4vYH1ncQDSSVB8tciUqzX
3daDl6r8Bueott9z5NTLlcvJWEALqoEhUs5PPH3W3PHSTq9EG9rLvqcgRPhS1Ukj
B8+U3iZngp0NV7VT5vAEXu9jWTjBrxxhH3kviAoIXULXFyfdW03N/MAhkWfmIt5c
9WOfLAIuTT4mw+hehcQ7u4lIoVkntvBC/RwoGQqJY+fxqr3yMvE73skPpOe5VEnP
cvzrFmW6f7d6wrDQv1JRjeM6UTRTIsrfRnoMnvofMt6FAWsHxNxGSaIEqUYOFRo=
=QxW6
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs