pulse width modulation, get values from the previous block

3 views (last 30 days)
Hello,
In simulink, I would like to make a pulse width modulation action from pulse generator block . The problem is that, in order to set a varying pulse width in block parameters window druing the simulation, i need the value from the previous block . What should i do ? to use get_param function or anything else

Answers (1)

A Jenkins
A Jenkins on 22 May 2014
Go to the File Exchange and search for "Programmable Pulse Generator". There are a couple examples there that you can either use directly, or modify to fit your needs.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!