Forum: GNU Radio connect multiple streams

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
57371349a0e4580b0362a0441ef5094b?d=identicon&s=25 Vincenzo Pellegrini (Guest)
on 2007-04-02 18:48
(Received via mailing list)
hi list,

could anyone send me a link for me to see the right syntax that should
be used in python to connect a block with N output streams to one with N
input streams?

is it just a connect(a,b) ?

thanks

vincenzo
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-04-02 23:20
(Received via mailing list)
On Mon, Apr 02, 2007 at 06:47:30PM +0200, Vincenzo Pellegrini wrote:
> vincenzo
for i in range(N):
    fg.connect((a, i), (b, i))

Eric
57371349a0e4580b0362a0441ef5094b?d=identicon&s=25 Vincenzo Pellegrini (Guest)
on 2007-04-03 01:38
(Received via mailing list)
thanks josh, thanks eric, it works fine and easy.

is this guess about the behaviour of gr.streams_to_stream correct?

N streams of 1 item each get interleaved into a single stream of N items
according to this pattern:

(item from stream0) (item from stream2) ..... (item from streamN)
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-04-03 01:42
(Received via mailing list)
On Tue, Apr 03, 2007 at 01:37:07AM +0200, Vincenzo Pellegrini wrote:
> thanks josh, thanks eric, it works fine and easy.
>
> is this guess about the behaviour of gr.streams_to_stream correct?
>
> N streams of 1 item each get interleaved into a single stream of N items
> according to this pattern:
>
> (item from stream0) (item from stream2) ..... (item from streamN)

That's correct.

Eric
This topic is locked and can not be replied to.