discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Using static variables in work function of an OOT


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Using static variables in work function of an OOT module.
Date: Mon, 8 Feb 2016 20:20:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

Did you add strend to your blocks public/exported-to-python API by adding it to the include/strend_ff.h ?

Best regards,
Marcus

On 08.02.2016 20:11, Sagar Karmur Narasimha Reddy wrote:

Hi All,

     I am trying to use two static variables in the work function of the OOT module I developed one n_samples to keep track of nth sample where sample power is > -30 dB another static varibale n_start to keep track of 1st sample where the power is > -30dB. If i try to use these static variables inside work function of the OOT module I developed it complies fine. However, if I run my GRC module it throws an error saying

 Attribute error: 'module' object has no attribute strend.

I need these static variables  to differentiate b/w noise and received signal in USRP.

Please, let me know to how to use static variables inside a work function of a  OOT module or any pointer where i can study about using static variables in OOT module. PFA .cc .h and CMakeLists file of my OOT module.



Best Regards,
Sagar


_______________________________________________
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]