discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] how vector sink/source work?


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] how vector sink/source work?
Date: Tue, 17 Jun 2008 08:47:24 -0700
User-agent: Mutt/1.5.17 (2007-11-01)

On Tue, Jun 17, 2008 at 02:52:32AM -0700, mehdimolu wrote:
> 
> hi, 
> I have data below
> src_data = (0,1,1,0,1,0,1,0,1,1,10)
>  and I put them in a vector by using 
> src = gr.vector_source_b (src_data,False) .
> I want to put this vector in vector sink and read data in sink, I use
> commands below
> sink = gr.vector_sink_b()
> fg.connect(src,sink)
> sink_data = sink.data()
> print sink_data
> 
> but what is printed  is :  ()
> 
> kindly tell me how can I see data of sink.
> 
> 
> Regards,
> Mehdi

You have to run the graph before extracting the data.

Take a look at any of the QA code in 
gnuradio-core/src/python/gnuradio/gr/qa_*.py.
They all use vector sources and sinks.

Eric




reply via email to

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