[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] how to generate a periodic pulse
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] how to generate a periodic pulse |
Date: |
Thu, 7 Oct 2010 00:40:44 -0700 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Oct 06, 2010 at 11:47:27PM -0700, jmiggal wrote:
>
> Hi all,
>
> I have the same doubt. I want to generate a pulse (with a duty cycle
> less than 50%) and I do not know how to do it.
>
> I saw gr.sig_source_x but this only generate pulses at 50% duty cycle.
>
> I tried to multiply several squares pulses at different frequencies and
> it works, I get a pulse of 12.5% duty cycle for example but it is
> semi-random since all signal generators are not coherent.
>
> Please Can somebody help me to generate a pulse signal which I can
> change the pulse width?
// High 12.5%
src = gr.vector_source_f((1, 0, 0, 0, 0, 0, 0, 0), True)
// High 25.0%
src = gr.vector_source_f((1, 1, 0, 0, 0, 0, 0, 0), True)
Eric