[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Re: Rearranging a running flow graph
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] Re: Rearranging a running flow graph |
Date: |
Sun, 18 Mar 2007 10:50:07 -0700 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070306) |
Patrick Strasser wrote:
>>> The third possibility would be construct a switch block that takes n
>>> inputs and has a method to select the input by a number.
>
>> I think gnuradio needs a mux and a demux block. A mux has N inputs and
>> a set_n method. The mux will only feed the output with the nth input
>> stream (throw out/ignore the other inputs). A demux has N outputs and
>> a set_n method. The demux will only feed the nth output with the input
>> stream.
>
> Exactly what I was thinking about. AFAIK the squelch block has an option
> to output either zeros or nothing when squelched.
>
> I would not call it multiplexer, as this implicates for me interleaving
> of more than one stream to of from. I think our searched-fore behaviour
> is rather a selector or multiswitch.
A selector would be straightforward to implement with today's code.
Since all outputs in a flowgraph must generate equal numbers of items,
it's not possible today to make a block that directs it's input to
one-of-n outputs in a single block. When the new hierarchical block
code is complete, you could make one that would connect and disconnect
the appropriate outputs to the input as needed in the set_n function.
--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com