[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] How to use stream_mux in C++
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] How to use stream_mux in C++ |
Date: |
Wed, 6 Jul 2016 17:45:05 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
That's not what lengths is meant for, it's meant for describing vector
lengths on the inputs, and they don't change in GNU Radio. For dynamic
selection, see the multiply_matrix block (it comes with examples in
gr-blocks).
Cheers,
M
On 07/06/2016 04:35 PM, Robert Kraml wrote:
> I'm trying to use the stream_mux block in C++ to switch between a number
> of streams. I can instantiate it with an "lengths" vector of say { 1 ,
> 0 } to select the first and not the second channel but I don't see how
> this is changed (say to { 0,1}) on the fly. It is a const reference and
> I don't see any other functions available to switch it once it is started.
>
> -Bob
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>