Maximum step size or automatic timing
이전 댓글 표시
Hi,
First time here, so please bear with me while I get the hang of this.
I am modelling a dc-dc converter at high frequency using peak current control using SimPowerSystems. I know that simulink uses a variable time steps to speed up the simulation time. Now, my model relies on a set pulse to activate an SR flip flop. The trick here is that the set action only needs to happen at the beginning of the period and begone as soon as possible thereafter to give the control signal the time to reset it when necessary during the period. But with variable timing this does not always happen; i.e. the pulse sets the flipflop but does not quickly disappear because of the large step size.
Now, I was wondering what the best way to over come this is: I could set the maximum step size to for example, 1e-6 seconds or I can set my pulse generator to a period of 1e-4 and the percentage of the duty cycle to 0.01.
I noticed that there is a timing difference between the 2 methods and want to know which method (or any other that people might know) works best (i.e. fastest with highest accuracy).
Regards,
Dirk
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Electrical Sensors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!