"Chris " <christophe...@samsung.com> a écrit dans le message de news:
i2lqfo$doc$1...@fred.mathworks.com...
Thanks for your reply. So far, I've been trying to generate the signal using built-in blocks (I'm not familiar enough with Simulink/PWM to try to build the generator myself). I'm a bit confused by the other method you suggest. I want the duty cycle to increase 10% every .1 seconds, so I created this signal using a ramp and rounding function. Can I input this as a parameter for another block? I don't really understand what you mean by "compare a triangle carrier with an input signal." Sorry for my simulink incompetence....
Thanks again!
"Jean Baptiste Lanfrey" <jlan...@mathworks.com> wrote in message <i2m6d7$4ie$1...@fred.mathworks.com>...
> Hi Chris,
> Depending on the version you are using there are several ways to do it.
> You can use built-in blocks (physical signals from simscape foundation
> library) and for instance compare a triangle carrier with an input signal
> that will determine the duty cycle.
> You can also use the simscape language to build you own PWM generator with
> either a time varying duty cycle defined in the ssc file
> (http://www.mathworks.com/access/helpdesk/help/toolbox/physmod/simscape/ref/time.html)
> or as an input to your block.
> HTH
> Jean-Baptiste
>
>
> "Chris " <christophe...@samsung.com> a crit dans le message de news:
Have a look there : http://en.wikipedia.org/wiki/Pulse-width_modulation. It
explains the simplest method to generate a PWM.
Once you've built this simple model, just connect a ramp (slope 10%/0.1s) to
the duty cycle input and you're done.
Jean-Baptiste
"Chris " <christophe...@samsung.com> a écrit dans le message de news:
i2oedf$coc$1...@fred.mathworks.com...
Thanks again for your help!
"Jean Baptiste Lanfrey" <jlan...@mathworks.com> wrote in message <i2onac$4f8$1...@fred.mathworks.com>...
"Chris " <christophe...@samsung.com> wrote in message <i2r110$lbo$1...@fred.mathworks.com>...