|
From: | sumit kumar |
Subject: | Re: [Discuss-gnuradio] Help with gr::io_signature::makev |
Date: | Wed, 17 Jan 2018 13:51:41 +0100 |
I think you are using an older standard of C compiler. The C11 does not allow to initialise a vector using {}. But this doesn't matter as it compiled successfully. Try initialising the vector with its constructor and then assign the values. It doesn't make sense but still no harm in trying.Regards,SakthivelOn 13-Jan-2018 5:48 AM, "sumit kumar" <address@hidden> wrote:The input signature is not a problem here. For gr::io_signature::make(2, 2, sizeof(gr_complex)), i.e. when using make, size of all input items is same. Its is different when using make2, make3 and makev.--On 13 January 2018 at 01:23, Sakthivel Velumani <address@hidden> wrote:Hi Sumit,You have given no of input streams as 2 but mentioned size of item for only one. This may be the source of the error. Try correcting it and let us know.Regards,SakthivelOn Fri, Jan 12, 2018 at 10:37 PM, sumit kumar <address@hidden> wrote:______________________________Hi,I am trying to use gr::io_signature::makev for my output signature in my bar_impl.ccbar_impl::bar_impl(int offset, int freq): gr::block("bar",gr::io_signature::make(2, 2, sizeof(gr_complex)),gr::io_signature::makev(4, 4, out_vect))For that in the header I did following in the header bar_impl.hconst std::vector<int> out_vect = {sizeof(gr_complex), sizeof(gr_complex), sizeof(float), sizeof(float)};It compiles but when I do gr_modtool makexml, it throws this erroraddress@hidden:~/nuradio/src/gr-fist$ gr_modtool makexml bar GNU Radio module name identified: fistWarning: This is an experimental feature. Don't expect any magic.Searching for matching files in lib/:Making GRC bindings for lib/bar_impl.cc...tbiError: Can't parse output signature.Traceback (most recent call last):File "/home/john/nuradio/bin/gr_modtool", line 46, in <module> main()File "/home/john/nuradio/bin/gr_modtool", line 38, in main modtool.run()File "/home/john/nuradio/lib/python2.7/dist-packages/gnuradio/mod tool/modtool_makexml.py", line 76, in run self._make_grc_xml_from_block_data(params, iosig, blockname) File "/home/john/nuradio/lib/python2.7/dist-packages/gnuradio/mod tool/modtool_makexml.py", line 100, in _make_grc_xml_from_block_data if iosig[inout]['max_ports'] == '-1':KeyError: 'out'Need some help :)--Sumit Kumar_________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Sumit Kumar
[Prev in Thread] | Current Thread | [Next in Thread] |