[Top][All Lists]

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

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

From: sumit kumar
Subject: [Discuss-gnuradio] Help with gr::io_signature::makev
Date: Fri, 12 Jan 2018 22:37:12 +0100


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...
Error: Can't parse output signature.
Traceback (most recent call last):
  File "/home/john/nuradio/bin/gr_modtool", line 46, in <module>
  File "/home/john/nuradio/bin/gr_modtool", line 38, in main
  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

reply via email to

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