Problem in PWM block
显示 更早的评论
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
2014-10-2
0 个投票
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
社区
类别
在 帮助中心 和 File Exchange 中查找有关 Switches and Breakers 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!