[Top][All Lists]

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

Re: [Discuss-gnuradio] Add parameters to a C++ function

From: Daniel Dekst
Subject: Re: [Discuss-gnuradio] Add parameters to a C++ function
Date: Tue, 9 Nov 2010 01:43:04 +0800 (CST)

Hi, Thilo,

Thanks a lot for your help!
We also need to modify the gr_ofdm_frame_sink.i and then it works.
Good luck!


--- On Mon, 11/8/10, Thilo Mönicke <address@hidden> wrote:

From: Thilo Mönicke <address@hidden>
Subject: Re: [Discuss-gnuradio] Add parameters to a C++ function
To: "Daniel Dekst" <address@hidden>
Date: Monday, November 8, 2010, 5:10 PM


have you changed the swig files to?

have a look at swig/Makefile.am and swig/yourpakagename.i


2010/11/8 Daniel Dekst <address@hidden>
Hi, all,

I want to get the subcarrier SNR averaged across the whole packet.
So I want to trigger the calculation in gr_ofdm_frame_acquisition.cc from gr_ofdm_frame_sink.cc where the packet header is examined to be correct or not.

To achieve this, I add one parameter to the construction of gr_ofdm_frame_sink, a pointer pointing to the instance of gr_ofdm_frame_acquistion so that I can access functions in the gr_ofdm_frame_acquisition.

However, I got error
  File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_swig_py_general.py", line 7039, in ofdm_frame_sink
    return _gnuradio_swig_py_general.ofdm_frame_sink(*args, **kwargs)
TypeError: ofdm_frame_sink() takes at most 8 arguments (9 given)

I have changed the gr_ofdm_frame_sink.cc/h to be able to hold 9 arguments.
Why does _gnuradio_swig_py_general still report it can only take 8 arguments?
What should I modify?

Thanks a lot!


Discuss-gnuradio mailing list

reply via email to

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