discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async m


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
Date: Fri, 31 Jan 2014 00:39:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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

Ok, Now I can reproduce your problem.
But I do get (in contrast to your error message because of connecting
a block to itself):
Traceback (most recent call last):
  File "/home/marcus/top_block.py", line 74, in <module>
    tb = top_block()
  File "/home/marcus/top_block.py", line 32, in __init__
    self.test_msg_hier_0 = test_msg_hier()
  File "/home/marcus/.grc_gnuradio/test_msg_hier.py", line 38, in __init__
    self.connect((self.blocks_complex_to_mag_0_0_0, 0), (self, 4))
  File
"/home/marcus/.usrlocal/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py",
line 75, in connect
    self._connect(points[i-1], points[i])
  File
"/home/marcus/.usrlocal/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py",
line 81, in _connect
    dst_block.to_basic_block(), dst_port)
  File
"/home/marcus/.usrlocal/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py",
line 2890, in primitive_connect
    return _runtime_swig.hier_block2_sptr_primitive_connect(self, *args)
ValueError: destination port 4 out of range for test_msg_hier(1)

Which fits quite well into your observation that there is a lack of
order in the output.

As it seems, the output signature of your hier block is 4 streams,
which is correct.
So I guess GRC is getting the hiccups because the message stream is
not the last pad; I think they're ordered alphabetically. Can you give
the block an id like zzzz_zzzz_verylast? does that help?

Greetings,
Marcus

On 31.01.2014 00:22, Achilleas Anastasopoulos wrote:
> Marcus,
> 
> the error is still there even if you don't have direct connections
> between in/out pads.
> 
> See attached
> 
> Achilleas
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS6uLIAAoJEAFxB7BbsDrLGtUIAKYeM9Kv/cr/SwkL1dEI6Vqn
KExN/jXG5FOTHWW9wNP1ctO94x8u+Ard/j4KZ1qkr1SEvlvwe9ZW+7+R9KGXy0nm
LK3XRr7PlSr+CRXPFcYigFcFGaev12EDMudD7Ulx6DOHVSrw2FBg7gUpiqHA6FfX
I0f72L1/1zC0JamVp/+27+Mjv+BsOsBjcQj45deKHsnR+FFHEaxOVaTQXMiIqZUI
5SsSj7AVMAzKg+p8JLEq7S2js2ozObNSvUB3S7DooHpSW/xIxx23JiAzVcByhKBa
6IbIkD2/1pekQx+qyo+kJ67qbPVS2JppHXaHEqj/ke24XP2wfDHPImNYndeHX2E=
=NOd2
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]