discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Howto module segmentation fault


From: Michael Civ
Subject: [Discuss-gnuradio] Howto module segmentation fault
Date: Tue, 26 Oct 2010 12:53:46 -0700 (PDT)

Hello, I recently got python programs to successfully import the howto module, but I cannot use the functions. Any help or suggestions would be greatly appreciated:

Python code:
#!/usr/bin/env python

from gnuradio import gr
import howto

class my_top_block(gr.top_block):

    def __init__(self):
        gr.top_block.__init__(self)

        src_nums = (4, 5, 6)
        src = "" (src_nums)
        sqr = howto.square_ff ()
        dst = gr.vector_sink_f ()
        self.connect (src, sqr)
        self.connect (sqr, dst)
        print "src: ", src
        print "sqr: ", sqr
        print "dst.data: ", dst.data()
        
if __name__ == '__main__':
    my_top_block().run()

Output:
src:  <gr_block vector_source_f (1)>
sqr:  <gr_block square_ff (2)>
dst.data:  ()
Segmentation fault

Thanks,
Mike


reply via email to

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