Error while running example of detect_ff block

hey,
i have successfully imported “detect_ff” block. but right now I am
getting
runtime error while running example on grc as follows.
File “/home/abhishek/top_block.py”, line 84, in
tb = top_block()
File “/home/abhishek/top_block.py”, line 53, in init
self.howto_detect_ff_0 = howto.detect_ff(100, 16, 1500)
AttributeError: ‘module’ object has no attribute ‘detect_ff’

Done
It seems there is some problem with my class name in .cc file, but i am
not
getting what exactly it is. Please help me out with this.
i have attached .cc, .xml file and also screen shot of given example is
provided

Any help will be appreciated,
Thanks in advance,
Abhishek

In your .xml file, the line:

howto.detect_ff($pfa, $L, $samples)

should be:

howto.howto_detect_ff($pfa, $L, $samples)

Ron

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs