Problem in PWM block

조회 수: 4 (최근 30일)
Abhay
Abhay 2014년 8월 23일
답변: Sebastian Castro 2014년 10월 2일
Hey! i am trying to generate a PWM signal to control 3 phase inverter and I am getting the following errors
:
Error in port widths or dimensions. Output port 1 of 'autoproj/Sine Wave' is a [1x1] matrix.
Component: Simulink | Category: Block errorOpen
Error in port widths or dimensions. Input port 1 of 'autoproj/PWM Generator (2-Level)' is a one dimensional vector with 3 elements.
The image of my model is also attached. I need to generate a PWM signal to get a sinusoidal output.
Pls help!!

답변 (1개)

Sebastian Castro
Sebastian Castro 2014년 10월 2일
Hi Abhay,
The PWM Generator block you placed in configured by default for three-phase systems -- therefore, it expects a 3-element vector of duty signals.
If that is what you wanted, you can specify your phases in the Sine Wave block as [0 -120 120]*(pi/180) , which will make the dimensions of the sine wave correct.
If you wanted a single-phase inverter signal (i.e. with 2 switching pulses instead of 6), then you should double-click the PWM Generator block and change the Generator Type drop-down menu to the dimension you're looking for.
- Sebastian

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by