[Top][All Lists]

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

[Discuss-gnuradio] howto module ... please help

From: Michael Civ
Subject: [Discuss-gnuradio] howto module ... please help
Date: Mon, 1 Nov 2010 15:29:25 -0700 (PDT)

Hello, I posted this a week ago and received no response. Any comments or suggestions would be greatly appreciate.

I recently got python programs to successfully import the howto module, but I cannot use the functions:

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

from gnuradio import gr
import howto

class my_top_block(gr.top_block):

    def __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__':

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


reply via email to

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