discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: pulse waveform


From: Justin Shaw
Subject: Re: pulse waveform
Date: Fri, 22 Nov 2019 20:41:48 -0500

Can you use scipy.signal.square?

https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.square.html

it has a duty cycle argument.

On Fri, Nov 22, 2019 at 8:24 PM Marcus D. Leech <address@hidden> wrote:
On 11/22/2019 08:14 PM, Kevin Reid wrote:
On Fri, Nov 22, 2019 at 12:37 PM sarandis. Doulgeris <address@hidden> wrote:
Can anyone tell me how to change the duty cycle of the Square Signal Source?

The Signal Source block does not support pulse width control.

You could use the Vector Source block to produce a pulse, specifying the vector like: ([1] * n_on_samples + [0] * n_off_samples)

I have done this in the past, and it works very well.  I used it for a pulsar simulation.




--
Justin


reply via email to

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