discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Handling more than 3 output streams


From: Moritz Luca Schmid
Subject: Re: [Discuss-gnuradio] Handling more than 3 output streams
Date: Wed, 7 Jun 2017 09:19:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

Hi Vipin,

you can find detailed information about the methods makeX to create an i/o signature in the doxygen documentation.

If you have multiple input streams with the same size, you don't have to specify the size of each stream separately but you can simply define their size in the last input item once (e.g. for make3 the the argument sizeof_stream_item3: "specify the size of the items in the third and subsequent streams"). If this is not the case and you have to define the size for each stream separately or you have at least more than 3 different stream sizes, you choose makev.

You can initialize the vector sizeof_stream_items just before your constructor. See gr-digital constellation_receiver_cb_impl as an example for that.


Best

Luca


On 07.06.2017 08:57, Vipin Sharma wrote:
I have a custom block for which I am trying to define the io signature in the *impl.cc file correctly. The problem is that the custom block has more than 3 output streams. I tried make5 but got a compile error saying make5 is not a member. After researching more, I found out that I need to use makev instead. But I am not sure how and where to initialize the vector int array type and then pass that variable as the third argument to the makev function below. Here is the block of code below. For example, where do I initialize the sizeOfInputStream vector-int array type? 

    /*
     * The private constructor
     */
    Nulling_cc_impl::Nulling_cc_impl(int PBoostFactor, char TapSize, int FrameSize, gr_complex *InitialTapsDb[2])
      : gr::block("Nulling_cc",
              gr::io_signature::makev(5, 5, &sizeOfInputStream), 
              gr::io_signature::make4(4, 4, TapSize*sizeof(gr_complex), TapSize*sizeof(gr_complex), sizeof(bool), TapSize*sizeof(gr_complex)))
    {}

Vipin


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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