Hi Vipin,
you can find detailed information about the methods makeX to create an
i/o signature in the doxygen documentation
<https://gnuradio.org/doc/doxygen/classgr_1_1io__signature.html#a99e0f9e8de8e7ce16ed92d9f2655e66c>.
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
<https://github.com/fengzhe29888/gnuradio-old/blob/master/gr-digital/lib/constellation_receiver_cb_impl.cc>/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
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio