Anything wrong with this PWM generation model?
2 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145800/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145801/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145802/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145803/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145804/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145805/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145806/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145807/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145808/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145809/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145810/image.png)
2 Comments
Walter Roberson
on 16 Aug 2011
This question uses included images fairly effectively.
I would, though, suggest in future, to make the actual questions text rather than an image, and to make the commentary on the settings to be text rather than images. That would make the question more comprehensible for those who have images normally turned off (e.g., if they are using dialup), and would allow people whose native language is not English to copy and paste the sentences in to a translation tool.
Nirmal Gunaseelan
on 16 Aug 2011
I agree with Walter. I really like the usage of images and with the questions in text, it'd perfect.
Answers (3)
Nirmal Gunaseelan
on 16 Aug 2011
I see that you changed the solver and zero-crossing settings and presume you have read through the various options and consequences of zero-crossing settings.
I have not tried changing the settings in your model, but I think that the time step settings you have hard coded makes the solver to probably miss the zero-crossing event? Could you try with a fixed-step solver under default settings to see what happens for a comparison?
0 Comments
onemilimeter
on 16 Aug 2011
1 Comment
Nirmal Gunaseelan
on 16 Aug 2011
I'd not be surprised by the version changes because solvers are constantly being changed.
onemilimeter
on 16 Aug 2011
1 Comment
Nirmal Gunaseelan
on 16 Aug 2011
Thanks for trying out. So essentially, the variable-step solver is missing the zero-crossing point. I'm not sure of the reason until I play around with the settings, I'd implore you to check the link in my previous answer and try out the options.
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Electrical Block Libraries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!