discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Repeating vector source with delay


From: Jason Uher
Subject: Re: [Discuss-gnuradio] Repeating vector source with delay
Date: Thu, 16 Apr 2009 07:10:32 -0500

>>Is there an easy way to get a vector source to pass on the same signal
>>over and over again, but with a fixed delay between each transmission?

'good practices' option: Look at the benchmark_*x.py examples, if you
drill down into the packet manager you will find an example of a
source block that takes messages asynchronously from your python
script and converts them into a stream of bits for the modulator.  You
could probably use that block directly, or at least with few
modifications.

quick option: You could probably use vector_src_x as a starting point.
 All you'd have to do is append a bunch of zeros the following code
builds a small frame that repeats with a 26 sample delay after each.
This method relies on your modulator expecting symboled bits already:

vector_src1 = 
(1,-1,1,-1)*6+(1,-1,-1,1,-1,-1,1,-1,1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,-1,-1)+(0,)*26
src1 = gr.vector_source_c(vector_src1,True)

Jason




reply via email to

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