How to simulate in function of duty cycle instead of time?

조회 수: 13 (최근 30일)
Dear colleagues,
I'm doing the bachelor thesis about using dc-dc converters with PV Panels. See 1st photo
When I run the model it run in function of time, but I would like to do a simulation with the duty cycle in the Scopes. I mean, to show the output values when the converter works with different duty cycle (I don't care about time).
I don't know how to do it and I would be very grateful if you could give me a clue or a help with that.
Thank you in advance.

채택된 답변

Joel Van Sickel
Joel Van Sickel 2022년 9월 28일
Hello Pedro,
It might be a bit noisy, if you want to post process the data to remove noise, please see below.
To do this with clean data, you'll only want the steady state solution. I would model the system in time, and step it through a few discrete duty cycles, for instance, 0.1, 0.2, 0.3, 0.4, 0.5, etc. Then you can take the steady state operating point for each duty cycle and plot that vs duty cycle. This will require creating a matlab script to post process the data and plot it after the simulation has run.
Regards,
Joel
  댓글 수: 3
Joel Van Sickel
Joel Van Sickel 2022년 11월 17일
Hello Pedro, unfortunately, I don't know a tool that will automatically do it. What I would do is use this block: https://www.mathworks.com/help/simulink/slref/toworkspace.html
then, at fixed time intervals, change your duty cycle. You can then grab the data from the moment before you change your duty cycle and that will be your steady state result if the system has been given enough time to hit steady state.
Pedro José Servián García
Pedro José Servián García 2022년 11월 20일
Hello Joel, finally I used it to fix my problem, thank you very much!!!!! I have another query about an error in the PV Array, I don't know if you could help me. It's on another question thread

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by