File Exchange

image thumbnail

Simulink programmable pulse generator

version 1.0.0.0 (8.13 KB) by Dustin
A pulse generator with amplitude, pulse width, and pulse period inputs.

11 Downloads

Updated 22 Apr 2008

View License

The pulse generator included in Simulink does not provide the ability to programmatically set the parameters. This block provides inputs that allow the amplitude, pulse width, and pulse period to be set. It's fairly simple, but wasn't obvious to me so I thought I'd share it.

Cite As

Dustin (2020). Simulink programmable pulse generator (https://www.mathworks.com/matlabcentral/fileexchange/19600-simulink-programmable-pulse-generator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (17)

Raja selvan J

Pratyush Raj

how to input phase delay

Kelvin Loutan

Not working for periods < 1 second

Karem Abuowda

Thanks so much. It is very useful.

Avinash Prakash

Charanraj

hey,
nice work. But will it work if i give time period as a sampling time like 2e-6 ??

Abdullah Tahir

Pulse Width and Pulse Period are in seconds. Thanks a lot for this simulink block. :)

Rahul

Chintan

Useful, but please incorporate phase delay option

Christian

I found it very useful. Thanks a lot!

Nancy

please tell me the time unit for the pulse period

uday

Hi the pulse generator works fine could u suggest how to add phase delay block to this pulse genrator .
Thanks

Basil Aljorani

amazing , really , really thanks
i need in my PhD work

upma rai

Hiii
how to change bit rate of gennerated pulse....like when i want to generate pulse of 10kbit/sec den how can I do......plz suggest me

alvin phee

HI there,
the model seems fine when working with integer constants input,however when i put non-integer values,the data read write seems to have a problem.Any ideas?

Isaiah

Hi, was able to open the model. seems to work fine, however, whenever i send an input to the pulsewidth input via a gain block, it doesnt work. please could you advise why this is so?
and could you give any hints as to what i can do to correct this.
i have to say though, it is a very good model.
thanks

vivek b

Hi.. I could not open the model. I have r14sp3 but couldn't open the model .It looks like the version is 7.1 whereas the version in r14sp3 (of simulink) is 6.1.

Updates

1.0.0.0

Fixes for dynamic pulse periods.

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux