PWM and Subusystem problems

Hello, I'm working on some MPPT algorithms but first I wanted a good modular boost converter with controllable dudty cycle (most examples had fixed duty). Anyways I have the PWM working mostly. It works fine, but during simulation it show's the pulses on the scope but then they disappear after simulation is over except for this little bit at the end of the simulation. This happens when I put it in another model to control the mosfet as well. The PWM will show on the scope till the simulation is over then its the last few ms is the only thing it shows and the mosfet doesn't seem to operate properly. I'm very novice at Simulink so I'm sure its something silly. I'm using SimPowerSystems to do the boost converter FYI.
Here's the two different models
http://db.tt/1kWCQLNx - Boost model
Any suggestions would be greatly appreciated
~Dustin
--UPDATE-- So I decided to take a fixed PWM controller and place it in the same simulation as my homemade one. It works exactly the same however it also gets chopped off after the simulation is done. I'm not sure what config is bad that's causing this. Everything is mostly default aside from the sampling frequency. 1e-6

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 12월 30일

0 개 추천

By default, the Scope has a limit of 5000 data points. Double click the Scope block, click the second icon on the top for "Parameters", click the "Data History" tab, you will see it. You can un-check the option, or increase the number, or save the data to a workspace variable.

댓글 수: 1

Dustin
Dustin 2011년 12월 31일
Thanks! Everything's working great now. That's kind of a silly default.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

도움말 센터File Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

질문:

2011년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by