[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] [use of gr.vector_source_b]
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] [use of gr.vector_source_b] |
Date: |
Tue, 2 Jun 2009 14:59:54 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Tue, Jun 02, 2009 at 11:15:35AM -0700, Rita's pfc wrote:
>
> 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'
Use this instead:
cadena = map(ord, '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)