Problem in PWM block

2 views (last 30 days)
Abhay
Abhay on 23 Aug 2014
Answered: Sebastian Castro on 2 Oct 2014
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!!

Answers (1)

Sebastian Castro
Sebastian Castro on 2 Oct 2014
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

Communities

More Answers in the  Power Electronics Control

Products

Community Treasure Hunt

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

Start Hunting!