discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Help with gr::io_signature::makev


From: Sakthivel Velumani
Subject: Re: [Discuss-gnuradio] Help with gr::io_signature::makev
Date: Sat, 13 Jan 2018 01:23:01 +0100

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,
Sakthivel

On 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.cc

    bar_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.h

const 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 error 

address@hidden:~/nuradio/src/gr-fist$ gr_modtool makexml bar 
GNU Radio module name identified: fist
Warning: This is an experimental feature. Don't expect any magic.
Searching for matching files in lib/:
Making GRC bindings for lib/bar_impl.cc...
tbi
Error: 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/modtool/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/modtool/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



reply via email to

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