Skip to Main Content Skip to Search
Product Documentation

Models with Pulse Width Modulation (PWM) Signals

This example shows how to configure models that use Pulse Width Modulation (PWM) input signals for linearization. For linearization, specify a custom linearization of the subsystem that takes the DC signal to be a gain of 1.

Many industrial applications use Pulse Width Modulation (PWM) signals because such signals are robust in the presence of noise.

The next figure shows two PWM signals. In the top plot, a PWM signal with a 20% duty cycle represents a 0.2 V DC signal. A 20% duty cycle corresponding to 1 V signal for 20% of the cycle, followed by a value of 0 V signal for 80% of the cycle. The average signal value is 0.2 V.

In the bottom plot, a PWM signal with an 80% duty cycle represent a 0.8 V DC signal.

For example, in the scdpwm.mdl model, a PWM signal is converted to a constant signal.

When linearizing a model containing PWM signals there are two effects of linearization you should consider:

 Related Examples

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS