As said, we don't see any connection between your usage of static
variables and that error. Sorry we can't help you with that.
Best regards,
Marcus
On 02/10/2016 03:41 PM, sagar wrote:
> Hi,
>
> Thanks Marcus and Sylvain it works with class variables. But it
> still difficult to figure out
Hi,
Thanks Marcus and Sylvain it works with class variables. But it
still difficult to figure out why gnu radio threw such error and it's
one of the most common errors that people come across in gnu radio.
Best Regards,
Sagar
Quoting "Marcus Müller-3 [via GnuRadio]" :
> Hi Saga,
>
> Th
Hi Saga,
The line that goes wrong is this:
> self.create_tags_strend_ff_0 = create_tags.strend_ff(-30.0)
So this means that the constructor isn't wrapped in Python. I don't know
in which way that could be related to you doing somethin in work(); you
really shouldn't be using static variables if yo
Hi,
I still don't get why you need static variable at all.
If you need state, just make it a class member of the xx_impl class
and that will survive across calls to work.
That's the proper way to do it, and that definitely works fine.
Cheers,
Sylvain
___
Hi Marcus,
Thank you for quick response. I have posted my error incompletely. I am
actually getting the below error
File "/home/user1/home/user1/gnuradio/tutorials/work/top_block.py", line
275, in
tb = top_block()
File "/home/user1/home/user1/gnuradio/tutorials/work/top_block.py", line
183, in _
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
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
s