discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Can we control the rate at which a block spews da


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Can we control the rate at which a block spews data
Date: Tue, 9 Sep 2008 06:20:02 -0700
User-agent: Mutt/1.5.17 (2007-11-01)

On Tue, Sep 09, 2008 at 04:01:02AM -0500, Murtuza wrote:
> Hi friends,
> 
> I have a gnuradio block that generates Gold code PN sequence. This code is
> based on Ed's code (mentioned earlier in a thread) which makes use of the
> gr.glfsr_source_b block and gr.xor_bb block. This gold code block generates
> PN seq at a rate that is depended upon the computer's performance ability.
> If I want to send a controlled sequence at 2Mcps how do I do this ? My work
> requires a chip sequence of 2Mcps but the one generated on my computer may
> be faster or slower. I did not find the exact rate though. Any ideas on how
> to do this ?
> 
> Thanks
> Ali

Ali, 

Virtually none of the blocks in GNU Radio (or any software radio for
that matter) know or care about the ultimate sample rate.  The only
place that sample rate comes into play is when you actually meet a
sink or source that is attached to some kind of device that's
connected to the outside world (e.g., A/D, D/A, USRP).

If you have a rate limiting output device (D/A, USRP) and you know the
rate at which it consumes samples, then you can work backwards from
there.  In any case, all kinds of questions come into play.  How may
samples per chip are you using?  1?

Q: What is the sample rate of this stream of samples:

  0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, ...

Eric




reply via email to

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