필터 지우기
필터 지우기

Relay block to generate signal PWM

조회 수: 3 (최근 30일)
Hamdi
Hamdi 2011년 8월 21일
my probleme : i have sinsoidal signal the maximum valeur is 1 V and the minimum is 0.7V .
i can't use Relay block to generate signal PWM

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 8월 21일
You mean you have y=a*sin(t), 0.7<a<1? To derive a PWM signal from a sinusoidal wave based on its magnitude, you just need to compare it with a constant. In your case, try to use a Relational Operator block to compare the sinusoidal wave with constant 0.8 and see what is the output of the Relational Operator block.

추가 답변 (1개)

Paulo Silva
Paulo Silva 2011년 8월 21일
Why do you need the relay block to generate the PWM?
This should suffice:
[sine wav] -----> [compare to constante] ------>(PWM output)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Pulse width modulation (PWM)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by