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 <patchvonbr...@gmail.com>
wrote:

> On 11/22/2019 08:14 PM, Kevin Reid wrote:
>
> On Fri, Nov 22, 2019 at 12:37 PM sarandis. Doulgeris <
> sarandis.doulge...@gmail.com> 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