discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] [use of gr.vector_source_b]


From: Rita's pfc
Subject: [Discuss-gnuradio] [use of gr.vector_source_b]
Date: Tue, 2 Jun 2009 11:15:35 -0700 (PDT)

Hello!
What I want to do is coding a string with trellis. This is the code I wrote.  
(..)
f = trellis.fsm("rita.fsm")
class my_top_block (gr.top_block):
        def __init__ (self):
                gr.top_block.__init__(self)
                cadena= 'asdf'
                src = gr.vector_source_b(cadena,False)
                tre = trellis.encoder_bb(f,0)
                sink_cod_vector = gr.vector_sink_b ()
                self.connect(src,tre,sink_cod_vector)
/*/*/*/*/*
And this is what I get:
 don't know why I got this message, because I think the use of the
gr.vector_source is ok.
Traceback (most recent call last):
  File "./prueba2.py", line 21, in <module>
    my_top_block().run()
  File "./prueba2.py", line 13, in __init__
    src = gr.vector_source_b(cadena,False)
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_gengen.py",
line 9306, in vector_source_b
    return _gnuradio_swig_py_gengen.vector_source_b(*args)
NotImplementedError: Wrong number of arguments for overloaded function
'vector_source_b'.
  Possible C/C++ prototypes are:
    gr_make_vector_source_b(std::vector<unsigned
char,std::allocator<unsigned char > > const &,bool,int)
    gr_make_vector_source_b(std::vector<unsigned
char,std::allocator<unsigned char > > const &,bool)
    gr_make_vector_source_b(std::vector<unsigned
char,std::allocator<unsigned char > > const &)


I don't what I'm doing wrong. Can someone help me?

Thanks
-- 
View this message in context: 
http://www.nabble.com/-use-of-gr.vector_source_b--tp23837912p23837912.html
Sent from the GnuRadio mailing list archive at Nabble.com.





reply via email to

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