[Top][All Lists]

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

Re: [Discuss-gnuradio] about samples

From: Josh Blum
Subject: Re: [Discuss-gnuradio] about samples
Date: Mon, 20 Dec 2010 21:12:30 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

On 12/20/2010 09:03 PM, lishan_wh wrote:
> Hi, I'm trying to use USRP to receive signals and collect the
> samples.Here is the flow graph: 
> usrp_source_c-->stream_to_vector-->complex_to_mag-->vector_sink_f dst
> = gr.vector_sink_f() data =  dst.data() In my opinion, what stores in
> data should be the amplitude of the samples. But I found that
> len(data) is quite different for each running. I don't know why. I
> also want to know the time duration for each sample collecting. Thank
> you! Ally

You may want to put a gr_head block between the input and the output to
control the number of samples that pass into the vector sink. In
addition, the head block will terminate flow graph execution when the
samples have accumulated.


> _______________________________________________ Discuss-gnuradio
> mailing list address@hidden 
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

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